我正在尝试在新计算机上安装出色的目录扩展。但我再也找不到了。唯一的页面我确实发现 https://github.com/minrk/ipython_extensions没有解释如何在 Windows 上安装扩展。
那么..我该如何安装它,为什么它不是官方 Ipython 笔记本的一部分?我简直无法理解没有它人们如何相处。
我已经安装了目录延伸 https://github.com/minrk/ipython_extensions成功地与木星4(即 ipython 笔记本 4)最近。
事实上,安装扩展比以前更容易:)
我在这里发布我的解决方案,希望有帮助。
## download
mkdir toc
cd toc
wget https://raw.githubusercontent.com/minrk/ipython_extensions/master/nbextensions/toc.js
wget https://raw.githubusercontent.com/minrk/ipython_extensions/master/nbextensions/toc.css
## install and enable
cd ..
jupyter-nbextension install --user toc
jupyter-nbextension enable toc/toc
多解释一下:
install
会复制toc
to ~/.local/share/jupyter/nbextensions/
enable
将修改~/.jupyter/nbconfig/notebook.json
.
你可以检查这两个地方看看发生了什么。
注意:我们使用enable toc/toc
这是因为toc.js
is in ~/.local/share/jupyter/nbextensions/toc/
。
如果你把toc.js
and toc.css
直接在~/.local/share/jupyter/nbextensions/
那么你应该使用enable toc
here.
Edit
抱歉,我没有注意到原来的问题是在 Windows 上。我不确定 windows jupyter 是否也一样,欢迎任何报告。
Update
现在目录nbextension已添加到这个项目 https://github.com/ipython-contrib/IPython-notebook-extensions它提供了各种 nbextensions 的集合。它非常容易安装和管理,值得尝试!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)