jupyter / jupyter/notebook

How to disable wrap for code cells?

Open
#3,598 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Hi

[Here](https://www.rparthiban.com/articles/misc/ucs/) is my blog post which is an experiment to write it in notebook and taking to wordpress. Out of many issues, one is that, all cells are heavily wrapped when viewed in mobile. I at least want code cells to be unwrapped (horizontal scrolling) to improve readability.

[Here](https://www.rparthiban.com/articles/wp-content/uploads/2018/05/UCS.html) is the actual exported html from nbconvert (via a script to embed images as base64).

Kindly help.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the linked exported HTML and inspect how nbconvert styles code cells on mobile. Trace the relevant HTML/CSS entry point for code-cell wrapping, then verify that code cells use horizontal scrolling without breaking the surrounding notebook layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.