Ask Your Question
0

How can I connect Jupyter with SageMath kernel?

asked 2023-12-24 12:45:27 +0200

Xavier gravatar image

updated 2023-12-24 21:54:41 +0200

FrédéricC gravatar image

SageMath 9.5; Python 3.11.6; Ubuntu; Jupyter 6.4.12 I can connect to python kernel but not to SageMath kernel

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2023-12-24 14:16:26 +0200

Emmanuel Charpentier gravatar image

Do you mean that you want to connect a systemwide-installed Jupyter to Sage's kernel ?

If so, this is documented here.

The first method should be usable with a procompiled Debian.Ubuntu (set of) package(s). Since I maintain my Sage installation from the souce git tree, I use (and recommend) the alternative symlinking method.

HTH,

edit flag offensive delete link more
0

answered 2023-12-24 14:28:15 +0200

eric_g gravatar image

updated 2023-12-24 14:56:28 +0200

You must have the Ubuntu package sagemath-jupyter installed on your system. Then you should launch Jupyter from the SageMath environment by typing the command sage -n in a terminal. It should open Jupyter in your browser and you should be able to select the SageMath kernel in it.

PS: if you would like to run a version of SageMath more recent than 9.5 (in particular 10.2, the last stable version) , take a look at https://sagemanifolds.obspm.fr/instal...

Update: see @Emmanuel Charpentier's answer for running the SageMath kernel in a system-wide Jupyter.

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

Stats

Asked: 2023-12-24 12:45:27 +0200

Seen: 185 times

Last updated: Dec 24 '23