Jupyter是交互式笔记,使用非常方便,但是也有点不足:
- 问题:如果Jupyter内容很多,我们如何快读定位?
- 原因:jupyter没有目录结构。
我们想要的效果,直接上图:
有了目录,在找内容,真实太方便了。
这个如何实现呢,分下面几步
步骤1:安装jupyter_contrib_nbextensions插件
安装方式1:pip install jupyter_contrib_nbextensions
如果网络不好,请使用方式2;
安装方式2:
- 下载jupyter_contrib_nbextensions
- 连接地址:https://pypi.org/project/jupyter-contrib-nbextensions/#files
- 下载后直接安装:
pip install 下载路径\jupyter_contrib_nbextensions-0.5.1-py2.py3-none-any.whl
步骤2:执行 jupyter contrib nbextension install --user
到这里安装完成
步骤3配置:
打开jupyter
jupyter notebook
配置如下:
然后就可以愉快编写了。