Ask Your Question
1

sage -n can't find jupyter sagemath kernel

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

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

2 Answers

Sort by ยป oldest newest most voted
1

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

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 +0100

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

try either of these commands:

jupyter lab --allow-root

or

jupyter notebook --allow-root

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 +0100

Seen: 15,746 times

Last updated: yesterday