Ask Your Question
1

sage -n can't find jupyter sagemath kernel

asked 2025-09-04 01:12:45 +0200

aberent gravatar image

I installed sage on Ubuntu (24.04) , and sage works fine in a terminal, but if I try "sage -n" Jupyter opens without a sagemath kernel. This is not surprising since I also get the message "WARNING:traitlets:Kernelspec name sagemath cannot be found!".

I have tried both building sage from source, and installing it from the appimage, and get the same results in both cases. How can I fix this?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2026-01-22 17:47:40 +0200

Matthias Steiner gravatar image

I ran into the same problem on Linux Mint.

A workaround on my system is to launch a Python Jupyter server via sage -n, and in the first cell of a notebook I import sage via from sage.all import *.

edit flag offensive delete link more
0

answered 2026-02-01 09:49:00 +0200

grmanifold1915 gravatar image

updated 2026-02-04 16:52:42 +0200

try either of these commands:

jupyter lab --allow-root

or

jupyter notebook --allow-root

edit flag offensive delete link more
0

answered 2026-02-05 14:07:44 +0200

try to remove the sage conda envirornment and recreate it. Than just install again with miniconda or mamba.

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: 2025-09-04 01:12:45 +0200

Seen: 16,104 times

Last updated: Feb 04