Ask Your Question
0

Problems running SageMath 9.2 in JupyterLab

asked 4 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 4 years ago

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.

Preview: (hide)
link

Comments

thanks! worked for me too

mmosmond gravatar imagemmosmond ( 3 years ago )

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: 4 years ago

Seen: 862 times

Last updated: Jan 12 '21