How to automatically add extension on Jupyter (ipython)?

I installed the extension 'calico-document-tools' and I can download it from a Jupyter laptop using:

 %%javascript IPython.load_extensions('calico-document-tools'); 

How can I download it automatically for every open laptop?

I tried adding IPython.load_extensions('calico-document-tools'); or IPython.load_extensions('C:/Users/<username>/.ipython/nbextensions/calico-document-tools'); in C:\Users\<username>\.ipython\profile_default\static\custom\custom.js , but it didn’t work (the extension should display several buttons on the toolbar).

I have only one profile created using ipython profile create , Python 3.3, Windows 7. Thanks in advance.

+5
python ipython ipython-notebook jupyter startup
Aug 17 '15 at 8:51
source share
1 answer

To install the extensions, I followed the instructions in this laptop (no longer available).

I adjusted them a bit to be compatible with ipython4 (where the laptop server is called jupyter). This team installs an extension worldwide:

 $ jupyter nbextension install https://github.com/Calysto/notebook-extensions/archive/master.zip 

Then enable this extension:

 $ jupyter nbextension enable calico-document-tools 

When you open or restart the laptop, it should download the extension

Configuration updates to enable extensions can also be performed from within the laptop:

 %%javascript IPython.notebook.config.update({ "load_extensions": {"calico-spell-check":true, "calico-document-tools":true, "calico-cell-tools":true } }) 
+7
Sep 15 '15 at 10:29
source share



All Articles