PineNuts0
PineNuts0

Reputation: 5234

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

Upvotes: 5

Views: 10084

Answers (3)

Invictus
Invictus

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

ewalel
ewalel

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

Regi Mathew
Regi Mathew

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

Related Questions