I will list a bunch of potentially relevant info:
I am running Ubuntu 2204.2.33.0 on WSL
I had installed sage initially using the apt as
sudo apt install sagemath
I had managed to run Jupyter NB with three different kernels: Rstats (IR), python, sagemath
I decided to install SageMath from source, starting with removing the installed version with
sudo apt-get --purge remove sagemath
I have now SageMath version 10.0 installed. However its kernel does not appear as an option
If I run the command
jupyter kernelspec list
I get back:
└─$jupyter kernelspec list Available kernels: ir
/home/toni/.local/share/jupyter/kernels/ir python3
/home/toni/.local/share/jupyter/kernels/python3
I have tried creating a directory inside /home/toni/.local/share/jupyter/kernels
called sagemath
and running sudo jupyter kernelspec install ./SageMath/local/share/jupyter/kernels/sagemath
, which doesn't seem to make sense how it would work, but it was a suggestion on a this answer. That gave me the error message: Jupyter command
jupyter-kernelspecnot found.
SageMath is actually under a different directory: /home/toni/sage
, and I don't see Jupyter inside the subdirectory /home/toni/sage/local/share