Ask Your Question
2

How to add extensions to Jupyter?

asked 4 years ago

roland gravatar image

updated 4 years ago

slelievre gravatar image

Hi,

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?

Roland

Preview: (hide)

Comments

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 ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

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
Preview: (hide)
link

Comments

@tmonteil

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

roland gravatar imageroland ( 4 years ago )

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 ( 2 years ago )

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

Stats

Asked: 4 years ago

Seen: 871 times

Last updated: Apr 28 '20