An easy way to install Jupyter Notebook extensions
I wrote a post a few months ago about a couple of useful Jupyter (formerly known as IPython) notebook extensions, and commented that they were a bit of a pain to install. Well, I’ve found a great way to get around that problem – an extension called nbextensions that will help you manage your notebook extensions.
After installing it (see below for more about how to do this), you can go to a new URL in the notebook /nbextensions, and you get the wonderful page below (click to enlarge):
Here you can browse through a list of extensions, read their documentation and enable/disable them – all very easily.
Installing the nbextensions can be a little tricky, but there are detailed instructions at the nbextensions Github page. I’ve tried to make it easier by building a conda package which you can install by running:
conda install -c https://conda.anaconda.org/robintw nbextensions
I haven’t tested this on many other computers – so beware that it may not work for you, and it will definitely only work on Jupyter 4.0 or newer (there are instructions on the nbextensions github page for how to get it working with IPython 2.0 and 3.0). Let me know if this package works for you – and enjoy your new extensions!
If you found this post useful, please consider buying me a coffee.
This post originally appeared on Robin's Blog.
Categorised as: Programming, Python
[…] you liked this post, then you may also like An easy way to install Jupyter Notebook extensions, Bokeh plots with DataFrame-based tooltips, and Orthogonal Distance Regression in […]
[…] you liked this post, then you may also like An easy way to install Jupyter Notebook extensions, Bokeh plots with DataFrame-based tooltips, and Orthogonal Distance Regression in […]
[…] (ã“ã®è¨˜äº‹ãŒæ°—ã«å…¥ã£ãŸæ–¹ã¯ã€Jupyter Notebook extensionsã®ç°¡å˜ãªã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«æ–¹æ³•ã€Bokeh plotsã¨ãƒ‡ãƒ¼ã‚¿ãƒ•ãƒ¬ãƒ¼ãƒ 基盤ã®ãƒ„ールãƒãƒƒãƒ—ã€Pytohnã«ãŠã‘る直交è·é›¢å›žå¸°ã‚‚ãœã²ã”覧ã«ãªã£ã¦ãã ã•ã„。) […]
I guess that nowadays the easiest way to get the extensions in Anaconda would be:
conda install jupyter_contrib_nbextensions jupyter_nbextensions_configurator -c conda-forge
It doesn’t work in my pc. I also tried the one suggested in the comment. It returns:
$ conda install jupyter_contrib_nbextensions
Fetching package metadata ………
Solving package specifications: .
PackageNotFoundError: Package not found: ” Package missing in current win-64 channels:
– jupyter_contrib_nbextensions
You can search for packages on anaconda.org with
anaconda search -t conda jupyter_contrib_nbextensions
It works :
conda install -c conda-forge jupyter_contrib_nbextensions
Good post, keep