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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…