Reputation: 5234
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
Upvotes: 5
Views: 10084
Reputation: 11
Esc and 'l' will remove the numbering from current cell. Esc and 'L' will remove the numbering from all the cells of notebook.
Upvotes: 1
Reputation: 2086
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
.
Upvotes: 1
Reputation: 2873
If I understand your question correctly, the solution is to click on the 'Toggle Line Numbers' inside the View Tab of your Jupyter Notebook.
Upvotes: 9