Ask Your Question
2

Jupyter-Python3 notebooks.

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

GGuasp gravatar image

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

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 18:01:40 +0200

tmonteil gravatar image

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

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 10:55:38 +0200

Seen: 714 times

Last updated: Feb 20 '19