First time here? Check out the FAQ!

Ask Your Question
1

SageMath unable to launch on Windows WSL

asked 2 years ago

Pickle gravatar image

updated 2 years ago

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

Preview: (hide)

Comments

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

Or in Window's PowerShell?

slelievre gravatar imageslelievre ( 2 years ago )

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 ( 2 years ago )

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

vick2075 gravatar imagevick2075 ( 2 years ago )

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

slelievre gravatar imageslelievre ( 2 years ago )

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 ( 2 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 2 years ago

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
Preview: (hide)
link

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

Seen: 688 times

Last updated: Jul 23 '22