Showing line numbers in IPython/Jupyter Notebooks

后端 未结 10 1226
遥遥无期
遥遥无期 2020-12-04 05:56

Error reports from most language kernels running in IPython/Jupyter Notebooks indicate the line on which the error occurred; but (at least by default) no line numbers are in

10条回答
  •  时光说笑
    2020-12-04 06:24

    On IPython 2.2.0, just typing l (lowercase L) on command mode (activated by typing Esc) works. See [Help] - [Keyboard Shortcuts] for other shortcuts.

    Also, you can set default behavior to display line numbers by editing custom.js.

提交回复
热议问题