Show code line numbers in JupyterLab

纵饮孤独 提交于 2020-08-22 04:01:20

问题


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

Referred a similar issue opened in github


回答1:


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




回答2:


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'




回答3:


You can go to View -> Show Line Numbers:

which will display line numbers in the notebook:



来源:https://stackoverflow.com/questions/49536407/show-code-line-numbers-in-jupyterlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!