Nikhil Mishra
Nikhil Mishra

Reputation: 1250

Installing jupyter-contrib-nbextension on Google Colab

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.

Upvotes: 7

Views: 6408

Answers (1)

prudenko
prudenko

Reputation: 1701

Just run !jupyter nbextension enable hinterland/hinterland: enter image description here

Upvotes: 14

Related Questions