How can I connect Jupyter with SageMath kernel?
SageMath 9.5; Python 3.11.6; Ubuntu; Jupyter 6.4.12 I can connect to python kernel but not to SageMath kernel
SageMath 9.5; Python 3.11.6; Ubuntu; Jupyter 6.4.12 I can connect to python kernel but not to SageMath kernel
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,
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.
Asked: 1 year ago
Seen: 663 times
Last updated: Dec 24 '23