在Google Colab上安装jupyter-contrib-nbextension

时间:2018-09-12 09:58:51

标签: jupyter-notebook google-colaboratory

我想安装腹地,以用于Google colab。我按照official page

上的安装说明进行操作

基本上,我执行了以下步骤:

!pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master
!jupyter contrib nbextension install --user

现在,当我想启用任何特定扩展名时说“腹地”,我将执行以下操作:

!jupyter nbextension enable  /usr/local/lib/python3.6/dist-packages/jupyter_contrib_nbextensions/nbextensions/hinterland/hinterland.js

但这给了我一个错误:

Enabling notebook extension /usr/local/lib/python3.6/dist-packages/jupyter_contrib_nbextensions/nbextensions/hinterland/hinterland.js...
  - Validating: problems found:
    - require?  X /usr/local/lib/python3.6/dist-packages/jupyter_contrib_nbextensions/nbextensions/hinterland/hinterland.js

该如何解决?我在任何步骤上都会出错吗?

或者还有其他更好的方法来专门为Google colab安装这些扩展。

1 个答案:

答案 0 :(得分:1)

只需运行!jupyter nbextension enable hinterland/hinterlandenter image description here