在Google Colab上安装jupyter-contrib-nbextension

问题描述 投票:1回答:1

我想安装腹地用于谷歌colab。我按照official page上的安装说明进行操作

基本上我做了以下步骤:

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

现在,当我想启用任何特定的扩展时,请说'hinterland',我会执行以下操作:

!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

我该如何解决?我在任何一步都出错了吗?

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

jupyter-notebook google-colaboratory
1个回答
1
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.