Ask Your Question
1

How to install nbextensions for Jupyter notebook in Sagemath

asked 2017-01-19 06:05:40 +0100

danny gravatar image

updated 2023-01-09 23:59:41 +0100

tmonteil 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 13:57:21 +0100 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2017-01-19 11:08:56 +0100

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
1

answered 2017-01-20 17:01:12 +0100

danny gravatar image

updated 2017-01-20 20:31:39 +0100

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 10:56:55 +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: 2017-01-19 06:05:40 +0100

Seen: 1,416 times

Last updated: Jan 20 '17