Issue
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.
By wrap text means "how text is wrapped in MS-word"
Solution
Find your configuration directory via jupyter --config-dir
(mine is ~/.jupyter
). Then edit or create nbconfig/notebook.json
to add the following:
{
"MarkdownCell": {
"cm_config": {
"lineWrapping": true
}
},
"CodeCell": {
"cm_config": {
"lineWrapping": true
}
}
}
(If you have something else in it, ensure you have valid JSON with no trailing commas after }
s.)
Restart Jupyter and reload your notebook.
Source: https://github.com/jupyter/notebook/issues/106
Answered By - Dan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.