ipython笔记本的TOC扩展会发生什么? [英] What happend to the TOC extension for ipython notebook?
问题描述
我试图在新计算机中安装好的目录扩展。但我再也找不到了。 我找到的唯一页面没有解释如何在Windows上安装扩展程序。
Im trying to install the great table of contents extension in a new computer. but I cant find it anymore. the only page I do find does not explain how to install the extension on windows.
所以......我怎么能安装它,为什么它不是官方Ipython笔记本的一部分?我只是无法理解人们如何在没有它的情况下相处。
So.. How can I install it, and why is it not a part of the official Ipython notebook? I simply cant understand how people are getting along without it.
推荐答案
我已经安装了 toc nbextension 最近成功使用 Jupyter 4 (即ipython notebook 4)。
实际上安装扩展程序比以前更容易:)
I've installed toc nbextension successfully with Jupyter 4 (ie. ipython notebook 4) recently. In fact installing extension is easier than before :)
我在这里发布我的解决方案,可能有所帮助。
I post my solution here, may it help.
## 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
更多解释:
安装
将复制 toc
到〜/ .local / share / jupyter / nbextensions /
enable
将修改〜/ .jupyter / nbconfig / notebook.json
。
你可以检查这两个地方看看发生了什么。
You can check these two place to see what happened.
注意:我们使用启用toc / toc
这是因为 toc.js
位于〜/ .local / share / jupyter / nbextensions / toc /
。
如果你直接在〜/中放入
然后你应该在这里使用 toc.js
和 toc.css
.local / share / jupyter / nbextensions / enable toc
。
Note: we use enable toc/toc
here is because toc.js
is in ~/.local/share/jupyter/nbextensions/toc/
.
If you put toc.js
and toc.css
directly in ~/.local/share/jupyter/nbextensions/
then you should use enable toc
here.
编辑
抱歉,我没有注意到Windows上的原始问题。我不确定它是否与windows jupyter相同,欢迎任何报告。
Sorry, I didn't notice the orginal problem is on windows. I'm not sure if it's same for windows jupyter, any report is welcome.
更新
现在已将toc nbextension添加到此项目中各种各样的nbextensions。这很容易安装和管理,值得一试!
Now the toc nbextension has been added into this project which provide a collection of kinds of nbextensions. It's very easy to install and manage, worth to try!
这篇关于ipython笔记本的TOC扩展会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!