Ask Your Question
1

How to install nbextensions for Jupyter notebook in Sagemath

asked 8 years ago

danny gravatar image

updated 2 years ago

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!

Preview: (hide)

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

2 Answers

Sort by » oldest newest most voted
1

answered 8 years ago

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 ?
  • ... ?
Preview: (hide)
link
1

answered 8 years ago

danny gravatar image

updated 8 years ago

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.

Preview: (hide)
link

Comments

Thanks, worked

Flips gravatar imageFlips ( 7 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: 8 years ago

Seen: 1,468 times

Last updated: Jan 20 '17