Ask Your Question
2

Jupyter-Python3 notebooks.

asked 2019-02-08 03:55:38 -0500

GGuasp gravatar image

updated 2019-02-20 10:29:12 -0500

tmonteil gravatar image

Jupyter interface creates and works with Python2 notebooks. It is possible configure it to work also with Python3? (If present in the system obviously)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
5

answered 2019-02-08 11:01:40 -0500

tmonteil gravatar image

updated 2019-02-20 06:26:29 -0500

Python 3 is compiled with Sage. To have it available as a jupyter kernel, just open a terminal and type:

sage -python3 -m pip install ipykernel
sage -python3 -m ipykernel install --user

EDIT Note that trac ticket 26441 asks for having both kernels available in Sage. The problem is that currently the ipykernel installs either the python2 kernel or the python3 kernel depending on which version of Python was used to build Sage.

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: 2019-02-08 03:55:38 -0500

Seen: 182 times

Last updated: Feb 20