Ask Your Question

How to add extensions to Jupyter?

asked 2020-04-28 14:03:35 +0200

roland gravatar image

updated 2020-04-30 10:32:14 +0200

slelievre gravatar image


One can add extensions to Jupyter, as explained on the jupyter-contrib-nbextensions installation page, for instance with the instruction:

pip install jupyter_contrib_nbextensions

But this instruction does not work using the SageMath 9.0 Shell (in Windows)... Any idea what to do?


edit retag flag offensive close merge delete


off-topic: if you use linux then you can integrate sage directly to any pre-existing jupyter installation, so you can have everything integrated

Masacroso gravatar imageMasacroso ( 2020-04-28 15:47:56 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-28 14:39:38 +0200

tmonteil gravatar image

In most installs, Sage has its own copy of python installation (virtual environment). So you have to install the pip packages within that copy by typing in a terminal :

sage -pip install jupyter_contrib_nbextensions
edit flag offensive delete link more



I got the message: error: command 'gcc' failed with exit status 1

roland gravatar imageroland ( 2020-04-28 15:39:12 +0200 )edit

After sage -pip install-ing, you can enable extensions in a cell in a notebook. For example to enable collapsible headings, run the following in a cell: !jupyter nbextension enable collapsible_headings/main

tkarn gravatar imagetkarn ( 2022-07-04 17:45:22 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-04-28 14:03:35 +0200

Seen: 702 times

Last updated: Apr 28 '20