Ask Your Question
2

How to add extensions to Jupyter?

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

roland gravatar image

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

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

edit retag flag offensive close merge delete

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 ( 2020-04-28 15:47:56 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

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

Comments

@tmonteil

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

roland gravatar imageroland ( 2020-04-28 15:39:12 +0100 )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 +0100 )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

Stats

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

Seen: 811 times

Last updated: Apr 28 '20