为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

效果:

posted @ 2019-03-27 17:24  鲲逸鹏  阅读(...)  评论(...编辑  收藏