Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 730
PineNuts0 Avatar asked Jan 04 '23 01:01

PineNuts0


2 Answers

If I understand your question correctly, the solution is to click on the 'Toggle Line Numbers' inside the View Tab of your Jupyter Notebook.

like image 57
Regi Mathew Avatar answered Jan 05 '23 14:01

Regi Mathew


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.

like image 34
ewalel Avatar answered Jan 05 '23 16:01

ewalel