Jupyter notebook如何显示行号?

其实很简单,打开jupyter notebook或jupyter lab,打开后页面如下所示:点击左上角第三个view也就是视图,选择Show Line Numbers即可

快捷键是Shift+L