Search code examples
pythonjupyter-notebook

How to wrap code/text in Jupyter notebooks


I am using jupyter-notebooks for python coding. Is there a way to wrap text/code in a jupyter notebook code cell?

Picture provided below.

Text not wrapping

By wrap text means "how text is wrapped in MS-word"


Solution

  • When using jupyter-lab (rather than jupyter notebook) the solution is much simpler.

    You can do:

    Settings > Advanced setting Editor > TextEditor > checkbox enable Line Wrap.

    Advanced settings editor