Ask Your Question
0

How to install nbextensions for Jupyter notebook in Sagemath

asked 2017-01-18 23:05:40 -0500

danny gravatar image

updated 2017-07-31 14:13:31 -0500

FrédéricC gravatar image

I like working with jupyter notebook for sagemath programming. But from Sagemath 7.4, I can not install nbextensions for Jupyter notebook. In Sagemath 7.3, I install nbextensions in the following way: In sage shell, pip install https://github.com/ipython-contrib/ju.... It works well in Sagemath 7.3. In Sagemath 7.4, 7.5, the following error reported: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

I want to know how to install nbextensions in Sagemath 7.5 correctly. Thanks!

edit retag flag offensive close merge delete

Comments

My OS is MacOS Sierra 10.12.2. I have installed Sage 7.3 from sage-7.3-OSX_10.11.6-x86_64.app.dmg. Those nbextension of Jupyter notebook can be installed normally and work well. After the Sagemath 7.4, 7.5.1 release, I try to update my sagemath to new version by installing from sage-7.?-OSX_10.11???app.dmg, Sagemath work normal. But I always fail while installing some packages such as those jupyter nbextensions. I have tried compile Sage from source, fail again and again.

Out of the sage shell environment. In the terminal, the pip install command run normally, no error about SSL is reported. But the nbextension still can not be installed for issue of permission.

What I can do next? Thanks.

danny gravatar imagedanny ( 2017-01-19 06:57:21 -0500 )edit

2 answers

Sort by » oldest newest most voted
0

answered 2017-01-20 10:01:12 -0500

danny gravatar image

updated 2017-01-20 13:31:39 -0500

I follow this post. which says :

sage -i openssl
sage -i pyopenssl

Then pip works again.

The reasons lead to such problems in the pose are figured out.

edit flag offensive delete link more

Comments

Thanks, worked

Flips gravatar imageFlips ( 2017-05-08 03:56:55 -0500 )edit
0

answered 2017-01-19 04:08:56 -0500

tmonteil gravatar image

There is an issue with your SSL installation. Could you please give us some informations so that someone can try to reproduce your problem:

  • which OS ?
  • did you install Sage from the binaries, and which ones ?
  • did you compile Sage yourself ?
  • ... ?
edit flag offensive delete link more

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: 2017-01-18 23:05:40 -0500

Seen: 192 times

Last updated: Jan 20