Search code examples
pythonformattingnumbersjupyter

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


Solution

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