How to enable line wrapping in ipython notebook

前端 未结 3 1041
青春惊慌失措
青春惊慌失措 2021-02-05 09:36

I have been trying to enable line wrapping in ipython notebook. I googled it with no results and i typed ipython notebook --help in a terminal. This gives me a ton of configurat

3条回答
  •  生来不讨喜
    2021-02-05 10:11

    To implement line wrapping in notebooks in ipython 3, I used the answer @Jakob linked above and @Jakob's actual answer. Using the single line of code did not work in my case - however adding the following to custom.js does:

    $([IPython.events]).on('app_initialized.NotebookApp', function(){
      IPython.CodeCell.options_default['cm_config']['lineWrapping'] = true;
    });
    

提交回复
热议问题