简体   繁体   中英

How to Turn Off Line Numbers in Jupyter Notebook Python 3.6.2

I tried using this code to turn off the lines:

IPython.Cell.options_default.cm_config.lineNumbers = false;

And I also tried

IPython.Cell.options_default.cm_config.lineNumbers = False;

But I get the following error: name 'IPython' is not defined

如果我正确理解您的问题,解决方案是单击 Jupyter Notebook 的“查看”选项卡内的“切换行号”。

For Jupyter 5.5.0 this also works perfectly.

Esc and then L . It lets you to toggle the line number on and off. L can be small l or caps L .

Esc and 'l' will remove the numbering from current cell. Esc and 'L' will remove the numbering from all the cells of notebook.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM