jamesoh
jamesoh

Reputation: 382

Global line numbers in Jupyter Notebook

In Jupyter Notebook I can toggle line numbers by pressing Shift+L in command mode. However this displays line numbers that start from 1 within each cell.

Is there a way to instead display global line numbers, that is, that count from 1 at the start of the first cell of the notebook to N at the bottom of the last cell?

Upvotes: 3

Views: 1756

Answers (1)

Charles
Charles

Reputation: 324

I do not know of a "native" way to do this in Jupyter.

However, this unofficial extension does it for you : jupyter-linenumbers

Upvotes: 3

Related Questions