首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Jupyter notebook服务器上添加"share notebook as gist“按钮?

如何在Jupyter notebook服务器上添加"share notebook as gist“按钮?
EN

Stack Overflow用户
提问于 2015-11-05 21:32:46
回答 3查看 992关注 0票数 3

我使用anaconda从Ipython Notebook Server升级到Jupyter Server:

代码语言:javascript
复制
(ioos)usgs@gam:~/.jupyter/custom$ conda list jupyter

jupyter                   1.0.0                    py27_0    defaults
jupyter-client            4.1.1                     <pip>
jupyter-console           4.0.3                     <pip>
jupyter-core              4.0.6                     <pip>
jupyter_client            4.1.1                    py27_0    defaults
jupyter_console           4.0.3                    py27_0    defaults
jupyter_core              4.0.6                    py27_0    defaults

我的“分享笔记为主旨”按钮消失了。

我想扩展的配置会随着新版本的变化而改变。

我可以看到包含gist.js~/.local/share/jupyter/nbextensions和一个名为mathjax的目录。

有没有人知道如何在这个Jupyter版本中正确配置“以Gist方式分享笔记本”按钮?

EN

回答 3

Stack Overflow用户

发布于 2015-11-06 04:52:11

您仍然需要激活nbextension。custom.js现在位于:

代码语言:javascript
复制
$(jupyter --config-dir)/custom

我还有一个文件:

代码语言:javascript
复制
$HOME/.jupyter/nbconfig/notebook.json

使用,

代码语言:javascript
复制
{
  "load_extensions": {
    "livereveal/main": true,
    "gist/gist": true
  }
}

我确实记得是我还是jupyter migrate创造的。

PS:请确保下载最新的gist.js

票数 1
EN

Stack Overflow用户

发布于 2015-12-01 04:14:17

我已经使用以下步骤修复了它:

  1. 下载gist.js

$ wget以用户身份https://raw.githubusercontent.com/minrk/ipython_extensions/master/nbextensions/gist.js

  • Install扩展:

$ jupyter nbextension安装--用户gist.js

注意:该命令接受文件名(使用.js)

  • To启用它,放入$(jupyter --config-dir)/nbconfig/notebook.json

{ "load_extensions":{ "gist":true } }

通过the instructions here suggest that python snippets should be used instead.

票数 0
EN

Stack Overflow用户

发布于 2017-06-06 11:05:02

要安装,只需运行:

代码语言:javascript
复制
pip install jupyter-notebook-gist
jupyter serverextension enable --py jupyter_notebook_gist
jupyter nbextension install --py jupyter_notebook_gist
jupyter nbextension enable --py jupyter_notebook_gist
jupyter nbextension enable --py widgetsnbextension

您还需要配置jupyter。有关详情,请参阅visit here

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33545899

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档