Ask Your Question
0

Problems running SageMath 9.2 in JupyterLab

asked 2021-01-12 00:05:09 +0100

pauljurczak gravatar image

I installed SageMath 9.2 by following the instructions from https://doc.sagemath.org/html/en/inst... and it works fine in terminal and Jupyter notebook, but it doesn't work in JupyterLab:

(base) paul@extra:~$ conda activate sage
(sage) paul@extra:~$ sage --notebook=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
(sage) paul@extra:~$ sage -i jupyterlab
make: *** No rule to make target 'all-toolchain'.  Stop.

BTW, JupyterLab is installed and works fine. Do I need additional configuration steps?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-12 01:37:48 +0100

pauljurczak gravatar image

My problem was not understanding conda environments. I had to (re)install JupyterLab into the same environment as SageMath:

(base) paul@extra:~$ conda activate sage 
(sage) paul@extra:~$ conda install -c conda-forge jupyterlab
(sage) paul@extra:~$ sage --notebook=jupyterlab

It works now at a cost of having some redundant installations of Jupyter, but this is a typical problem with Python, I guess.

edit flag offensive delete link more

Comments

thanks! worked for me too

mmosmond gravatar imagemmosmond ( 2021-08-16 20:24:21 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-01-12 00:05:09 +0100

Seen: 775 times

Last updated: Jan 12 '21