jupyter-notebookjupyterjupyter-lab

Enable word wrap in JupyterLab code editor


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

Already tried:

"CodeCell": {
    "cm_config": {
      "lineWrapping": true
    }
  }

Solution

  • Try the following,

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

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