Enable word wrap in JupyterLab code editor

依然范特西╮ 提交于 2020-04-10 03:03:32

问题


I would like to enable word wrap for the code cells in jupyterlab, but do not manage to find how.

Already tried:

  • File --> Settings --> Text Editor --> User Overrides:{"lineWrap": true}, which toggles the greyed-out "word wrap" in the "Editor" menu, but does not solve my problem
  • This code also did not work (neither did simply "Cell": {...} ):
"CodeCell": {
    "cm_config": {
      "lineWrapping": true
    }
  }

回答1:


Try the following,

{
   "codeCellConfig": {
      "lineWrap": "wordWrapColumn",
      "wordWrapColumn": 80
   }
}

For reference, see this pull request from the JupyterLap project on GitHub.



来源:https://stackoverflow.com/questions/48202340/enable-word-wrap-in-jupyterlab-code-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!