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.
jupyter contrib nbextension install --user The command does two things: installs nbextension files, and edits nbconvert config files. The first part is essentially a wrapper around the notebook-provided jupyter nbextension install, and copies relevant javascript and css files to the appropriate jupyter data directory.
In Colab, click the “Connect” button and select “Connect to local runtime”. Enter the URL you just copied and click “Connect”: That’s it! You now have the Colab research environment running on your local Jupyter server.
Notebook files have the extension ".ipynb" extension. A Jupyter notebook is one of many environments you may run Python code. Colab and the Jupyter notebook editor in Anaconda are two of the many pieces of software you may use to write and run a Jupyter notebook.
When a Jupyter Notebook is shared with you on Colab, you will often receive access to the notebook which will alow you to run code, but not edit it. This should be the case for the notebooks that form part of this course.
Just run !jupyter nbextension enable hinterland/hinterland
:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With