Jupyter Lab目录插件安装

Jupyter Lab目录插件安装

当然首先你得有python和已经安装了jupyter lab。

1 安装jupyter_contrib_nbextensions

首先先安装jupyter_contrib_nbextensions,其项目地址是https://github.com/ipython-contrib/jupyter_contrib_nbextensions。

安装方法可以直接pip安装。

pip install jupyter_contrib_nbextensions

或者

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

2 安装javascript和css文件

也是在命令行输入下面的命令。

jupyter contrib nbextension install --user

当然这个--user参数是可以换成其他的,具体可以在上面的项目地址中去看。但是用--user是没问题的。

3 安装jupyterlab-toc

项目地址https://github.com/jupyterlab/jupyterlab-toc

还是使用命令行

jupyter labextension install @jupyterlab/toc

到这里,应该打开jupyter lab之后,左边的侧边栏就有目录的标签了。

原文地址:https://www.cnblogs.com/IvyWong/p/10133389.html