为Jupyter只安装目录的扩展包

项目地址:https://github.com/minrk/ipython_extensions/tree/master/nbextensions

一般都是让安装Nbextensions,而这些扩展我只需要目录相关的扩展,那有什么办法单独安装吗?

==> Jupyter4.x之后就提供了这个功能:

保证jupyter关闭的前提下,先下载两个扩展文件,然后再执行:

地址:https://raw.githubusercontent.com/minrk/ipython_extensions/master/nbextensions/toc.js
地址:https://raw.githubusercontent.com/minrk/ipython_extensions/master/nbextensions/toc.css

jupyter-nbextension install toc
# jupyter-nbextension install --user toc

jupyter-nbextension enable toc/toc

为Jupyter只安装目录的扩展包_第1张图片

效果:
为Jupyter只安装目录的扩展包_第2张图片

转载于:https://www.cnblogs.com/dotnetcrazy/p/10609041.html

你可能感兴趣的:(为Jupyter只安装目录的扩展包)