Ask Your Question
1

Ubuntu on Windows cannot open notebook

asked 2022-07-05 13:32:51 +0100

vick2075 gravatar image

updated 2022-07-08 19:26:24 +0100

dan_fulea gravatar image

Hi,

I'm using WIndows 10 and just installed through WSL and Ubuntu. I opened Ubuntu to access Sagemath notebook, via sage -n jupyter.

However, I get the following error:

Please wait while the Sage Jupyter Notebook server starts...
[I 15:11:21.972 NotebookApp] Serving notebooks from local directory: /home/vickram
[I 15:11:21.972 NotebookApp] The Jupyter Notebook is running at:
[I 15:11:21.972 NotebookApp] localhost:8888/?token=9e8a8c04e0c3550eea3a3dfd04ad638384986a542ebaeb0d
[I 15:11:21.972 NotebookApp]  or 127.0.0.1:8888/?token=9e8a8c04e0c3550eea3a3dfd04ad638384986a542ebaeb0d
[I 15:11:21.972 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:11:22.193 NotebookApp]

    To access the notebook, open this file in a browser:
        home/vickram/.local/share/jupyter/runtime/nbserver-133-open.html
    Or copy and paste one of these URLs:
        localhost:8888/?token=9e8a8c04e0c3550eea3a3dfd04ad638384986a542ebaeb0d
     or 127.0.0.1:8888/?token=9e8a8c04e0c3550eea3a3dfd04ad638384986a542ebaeb0d
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/vickram/.local/share/jupyter/runtime/nbserver-133 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

The nbserver-133 is not present at all in that directory.

I tried to copy one of the url in my browser, but there were no directories present even though I have sagemath notebook files on my laptop.

Can you please help?

I used a previous version of Sagemath with binary installer to create scripts with sagemath.

edit retag flag offensive close merge delete

Comments

Note Serving notebooks from local directory: /home/vickram, which could explain "no directories present". You could start SageMath from a directory where there are notebooks, or use the Upload button in Jupyter.

rburing gravatar imagerburing ( 2022-07-06 08:02:42 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2022-07-06 18:57:49 +0100

ortollj gravatar image
edit flag offensive delete link more

Comments

I suppose this part could help in the link above #—————————————————————————— # NotebookApp(JupyterApp) configuration #—————————————————————————— c.NotebookApp.use_redirect_file = False

ortollj gravatar imageortollj ( 2022-07-06 20:18:39 +0100 )edit

@ortollj I upgraded ubuntu and used the link you gave to access notebooks on my c directory....thank you

vick2075 gravatar imagevick2075 ( 2022-07-07 07:44:55 +0100 )edit

you're welcome,happy that I could help ;-)

ortollj gravatar imageortollj ( 2022-07-07 13:44:06 +0100 )edit
1

@ortollj : for the benefit of future ask(per)users, could you turn your comments in a structured answer ?

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2022-07-08 22:44:13 +0100 )edit

@Emmanuel Charpentier@dan_fulea did it. Thank you dan_fulea.

ortollj gravatar imageortollj ( 2022-07-09 07:03:56 +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

Stats

Asked: 2022-07-05 13:32:51 +0100

Seen: 600 times

Last updated: Jul 08 '22