Show code line numbers in JupyterLab

前端 未结 4 924
[愿得一人]
[愿得一人] 2020-12-15 18:00

In Jupyter notebook, cntrl+ m L toggles code line numbers in current cell but how to bring the code line numbers in JupyterLab?

<
相关标签:
4条回答
  • 2020-12-15 18:37

    Late reply, but it'll still help others!

    For Windows users, just hit Shift + L

    0 讨论(0)
  • 2020-12-15 18:38

    You can go to View -> Show Line Numbers:

    which will display line numbers in the notebook:

    0 讨论(0)
  • 2020-12-15 18:49

    https://github.com/jupyterlab/jupyterlab/issues/2395 - Shift+L toggles line number visibility.

    0 讨论(0)
  • 2020-12-15 18:54

    you can turn this on by default by going into Settings --> Advanced Settings Editor:

    As you can see from the screenshot, you can edit other features as well and easily set them back to default by deleting your 'User Overrides'

    0 讨论(0)
提交回复
热议问题