Ask Your Question

How do I install Jupyterlab ?

asked 2021-07-13 23:37:01 +0100

l3gi0n gravatar image

updated 2021-07-13 23:52:48 +0100

I am on Windows 10, My understanding is that, to install jupyterlab I have to run:

(1) sage -pip install jupyterlab

(2) sage -i jupyterlab_widgets

is this right ?

but I get the following error when I execute them:

'sage' is not recognized as an internal or external command, operable program or batch file.


Is there an alternative way to install jupyterlab without messing around with environment variables ?

edit retag flag offensive close merge delete


from SAGE_ROOT, can you call ./sage -i jupyterlab

tkarn gravatar imagetkarn ( 2021-07-14 00:47:00 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-07-14 00:57:01 +0100

l3gi0n gravatar image

updated 2021-07-14 01:00:17 +0100

I managed to install jupyterlab by going to SageMath Shell and running: pip install jupyterlab

I can run it by going to SageMath Shell and running: jupyter lab

It launches jupyterlab in the browser....Is there a way to launch jupyterlab as an app and not in a browser ?

Also, why doesn't sage work in Windows's command line ? what should I do to make Windows's command line recognize the command sage ?

I made a batch file called sage.bat with the following content:

"B:\SageMath 9.2\runtime\bin\bash.exe" -l "B:\SageMath 9.2\runtime\opt\sagemath-9.2\sage"

and saved it under C:\Windows\ .. now when I type sage in the Windows' command line, it works, but for some reason if you add arguments to sage, it doesn't work...what did I do wrong ?

Many Thanks

edit flag offensive delete link more


For launching as an app not a browser:

tkarn gravatar imagetkarn ( 2021-07-14 01:07:25 +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


Asked: 2021-07-13 23:37:01 +0100

Seen: 272 times

Last updated: Jul 14 '21