First time here? Check out the FAQ!

Ask Your Question
0

How can I connect Jupyter with SageMath kernel?

asked 1 year ago

Xavier gravatar image

updated 1 year ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 1 year ago

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,

Preview: (hide)
link
0

answered 1 year ago

eric_g gravatar image

updated 1 year ago

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.

Preview: (hide)
link

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: 1 year ago

Seen: 563 times

Last updated: Dec 24 '23