Ask Your Question
1

SageMath unable to launch on Windows WSL

asked 2022-06-21 03:36:29 +0100

Pickle gravatar image

updated 2022-06-21 03:37:11 +0100

I just installed Sage using WSL and the Ubuntu distribution. When I try to run a notebook, I get the following error. Could someone help me resolve this?

Command

sage -n jupyter

Error

Start : This command cannot be run due to the error: The system cannot find the file specified.

At line:1 char:1

+ Start "file:///home/njjensen/.local/share/jupyter/runtime/nbserver-57 ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException

+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

edit retag flag offensive close merge delete

Comments

Are you running the command sage -n jupyter in the Ubuntu installed via WSL?

Or in Window's PowerShell?

slelievre gravatar imageslelievre ( 2022-06-22 11:09:10 +0100 )edit

I resolved this. I was doing some wanky stuff with my installation. Now I have got it working. Thanks for your concern

Pickle gravatar imagePickle ( 2022-06-22 20:18:07 +0100 )edit

HI, I'm having the same problem...How can I resolve it?

vick2075 gravatar imagevick2075 ( 2022-07-05 13:21:06 +0100 )edit

@Pickle -- please post an answer explaining in detail how you solved your problem!

slelievre gravatar imageslelievre ( 2022-07-06 00:34:53 +0100 )edit

I originally tried installing SageMath with a package installer. This is when I had issues. I changed directions and installed from source. This fixed all my issues!

Pickle gravatar imagePickle ( 2022-07-20 17:02:44 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-23 15:38:04 +0100

slelievre gravatar image

Some distributions package the SageMath Jupyter kernel separately.

For example, Debian has sagemath and sagemath-jupyter.

So check whether you have installed all the necessary packages using your package manager.

Also, if using Sage installed from a package manager, one would probably not use any of the following to start the Jupyter Notebook or JupyterLab:

$ sage -n jupyter
$ sage -n jupyterlab

but rather the corresponding:

$ jupyter notebook
$ jupyter lab
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

1 follower

Stats

Asked: 2022-06-21 03:36:29 +0100

Seen: 651 times

Last updated: Jul 23 '22