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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2023-12-24 12:45:27 +0100
Seen: 475 times
Last updated: Dec 24 '23
sagews vs jupyter notebook, and choices of kernels
Install optional packages (eg extra Jupyter kernels) on top of conda-installed SageMath
Kernel died when computing nullspace of a large matrix
How to install hide_code in SageMath?
install sagemath into jupyter in windows 10 rather than the reverse
Generating DDT for 16-bit sbox crashes Juypter kernel