I am on Ubuntu 22.04 and installed sage through the package manager.
It works when I run sage
, but I am not able to start jupyterlab notebook:
enzotib@ubuntu-enzo:~$ sage -n jupyterlab
Traceback (most recent call last):
File "/usr/bin/sage-notebook", line 57, in __init__
from jupyterlab.labapp import main
ModuleNotFoundError: No module named 'jupyterlab'
Jupyterlab is not installed (at least not in this Sage installation).
You can install it by running
sage -i jupyterlab_widgets
which includes support for interacts and the ability to download and
install other Jupyterlab extensions. For a minimal installation, run
sage -i jupyterlab
Alternatively, you can follow the instructions at
https ://doc.sagemath.org/html/en/installation/launching.html#setting-up-sagemath-as-a-jupyter-kernel-in-an-existing-jupyter-notebook-or-jupyterlab-installation
to use Sage with an existing Jupyterlab installation.
I tried to follow the suggestion
enzotib@ubuntu-enzo:~$ sage -i jupyterlab_widgets
make: *** No rule to make target 'all-toolchain'. Stop.
and the same for sage -i jupyterlab
.
I tried to enter the sage shell and check SAGE_ROOT
, but it is not defined
enzotib@ubuntu-enzo:~$ sage -sh
Starting subshell with Sage environment variables set. Don't forget
to exit when you are done. Beware:
* Do not do anything with other copies of Sage on your system.
* Do not use this for installing Sage packages using "sage -i" or for
running "make" at Sage's root directory. These should be done
outside the Sage shell.
Bypassing shell configuration files...
Note: SAGE_ROOT=
(sage-sh) enzotib@ubuntu-enzo:~$ exit
exit
Exited Sage subshell.
Finally, I checked that the right packages are installed
enzotib@ubuntu-enzo:~$ dpkg --get-selections sage* | expand
sagemath install
sagemath-database-conway-polynomials install
sagemath-database-elliptic-curves install
sagemath-database-graphs install
sagemath-database-mutually-combinatorial-designs install
sagemath-database-polytopes install
sagemath-doc install
sagemath-jupyter install
sagetex install
What can I do?