Installing jupyter-contrib-nbextension on Google Colab

落爺英雄遲暮 提交于 2020-01-04 15:58:28

问题


I wanted to install hinterland for use in google colab. I followed the installation instructions on official page

Basically I did the following steps:

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

Now when I want to enable any particular extension say 'hinterland' I do the following:

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

But this gives me an error saying:

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

How do I fix this? Am I going wrong in any step?

Or is there any other better way of installing these extensions specifically for google colab.


回答1:


Just run !jupyter nbextension enable hinterland/hinterland:



来源:https://stackoverflow.com/questions/52292456/installing-jupyter-contrib-nbextension-on-google-colab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!