2015-11-05 46 views
3

我從IPython的筆記本電腦服務器升級到Jupyter服務器使用水蟒:如何在Jupyter筆記本服務器上添加「將筆記本作爲要點」按鈕?

(ioos)[email protected]:~/.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 

和我的「共享筆記本作爲要點」按鈕,就走開了。

我想象擴展的配置隨新版本而改變。

我可以看到~/.local/share/jupyter/nbextensionsgist.js和一個名爲mathjax的目錄。

有誰知道如何正確配置「共享筆記本爲主要」按鈕與此Jupyter版本?

回答

1

您仍然需要激活nbextension。該custom.js現在現居:

$(jupyter --config-dir)/custom 

我也有文件:

$HOME/.jupyter/nbconfig/notebook.json 

用,

{ 
    "load_extensions": { 
    "livereveal/main": true, 
    "gist/gist": true 
    } 
} 

,如果我或者jupyter migrate創建我記得。

PS:請務必下載最新的gist.js

0

我已經使用以下步驟修復它:

  1. 下載gist.js

    $ wget https://raw.githubusercontent.com/minrk/ipython_extensions/master/nbextensions/gist.js 
    
  2. 安裝擴展作爲一個用戶:

    $ jupyter nbextension install --user gist.js 
    

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

  3. 要啓用它,投入$(jupyter --config-dir)/nbconfig/notebook.json

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

雖然the instructions here suggest that python snippets should be used instead.

0

要安裝,只需運行:

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