Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

jupyter notebook extensions in Sage 7.3?

Has anyone installed the jupyter notebook extensions successfully in Sage 7.3? Here is what I tried on Debian jessy:

sage -sh
pip install
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user

This seemed to work, but I could not see any of the extensions in the configurator tab, so I enabled some of them manually:

jupyter nbextension enable toc2/main

Again, this seemed to work and I got a nice table of content. However, ipython nbconvert did not work any more, returning the followin error message:

    File "sage/local/lib/python2.7/site-packages/ipython_genutils/",
line 31, in import_item
        module = __import__(package, fromlist=[obj])
TypeError: Item in ``from list'' not a string

After uninstalling all the above, I also had to rename the jupyter_nbconvert_config file before nbconvert would work again:

~/.jupyter$ mv jupyter_nbconvert_config.json old_jupyter_nbconvert_config.json

Does anyone have an idea what I should have done differently to use the jupyter notebook extensions in sage? Thanks for your help! Stan