Ask Your Question

Jupyter-Python3 notebooks.

asked 2019-02-08 10:55:38 +0100

GGuasp gravatar image

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

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

answered 2019-02-08 18:01:40 +0100

tmonteil gravatar image

updated 2019-02-20 13:26:29 +0100

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


Asked: 2019-02-08 10:55:38 +0100

Seen: 702 times

Last updated: Feb 20 '19