Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Running Sage on WSL2 doesn't open jupyter notebook

I've installed Sage on a Windows 11 machine. I installed WSL2 and Ubuntu through the Windows Store. I then installed Sage with a package manager.

When I try to run Sage with commands like "sage -n jupyter" or "sage --notebook", it starts Sage, but doesn't automatically open the jupyter notebook in my browser. Instead, it opens a file in a text editor. I can copy the link mentioned in the terminal output (that is produced when I run Sage) into a browser and that works, but I'd like it to open automatically, so that I can create an easy shortcut to start Sage. Following some instructions I found on wiki.sagemath.org, I created a config file using "sage --jupyter notebook --generate-config", and then I opened the config file and changed the option use_redirect_file to False. But it still doesn't work. Any suggestions?

Running Sage on WSL2 doesn't open jupyter notebook

I've installed Sage on a Windows 11 machine. I installed WSL2 and Ubuntu through the Windows Store. I then installed Sage with a package manager.

When I try to run Sage with commands like "sage -n jupyter" or "sage --notebook", it starts Sage, but doesn't automatically open the jupyter notebook in my browser. Instead, it opens a file in a text editor. I can copy the link mentioned in the terminal output (that is produced when I run Sage) into a browser and that works, but I'd like it to open automatically, so that I can create an easy shortcut to start Sage. Following some instructions I found on wiki.sagemath.org, I created a config file using "sage --jupyter notebook --generate-config", and then I opened the config file and changed the option use_redirect_file to False. But it still doesn't work. Any suggestions?

I also can't find the value of SAGE_ROOT. When I execute the command "sage -root", I just get a blank line. When I start sage and execute "SAGE_ROOT" at the sage prompt, it does nothing.