热线电话:13121318867

登录
2020-03-02 阅读量: 789
jupyter notebook 目录插件安装

一、jupyter notebook 目录插件安装
首先确保自己已经安装了Python(或者anaconda)
1.安装jupyter_contrib_nbextensions
首先先安装jupyter_contrib_nbextensions,其项目地址是https://github.com/ipython-contrib/jupyt er_contrib_nbextensions
安装方法可以直接pip安装。

pip install jupyter_contrib_nbextensions -i https://pypi.douban.com/simple 

或者

pip install https://github.com/ipython- 
contrib/jupyter_contrib_nbextensions/tarball/master

2.安装javascript和css文件也是在命令行输入下面的命令。

jupyter contrib nbextension install --user   

当然这个 --user 参数是可以换成其他的,具体可以在上面的项目地址中去看。但是用 --user 是没问题的。
重新打开jupyter,Home发现多出Nbextensions选项 点击 Nbextensions
勾选 Collapsible Headings 和 Table of Contents

这样设置完毕,打开一个notebook,发现多出Table of Contents图标

点击Table of Contents图标,就可以在左侧看到标题了



46.9788
2
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子