0

Goal

I want to connect Jupyter Lab with WSL 2 (Ubuntu 18.04) to my chrome

Tried

  1. Environemtn activate
  2. ```jupyter lab``
  3. ERROR:
JupyterLab application directory is /root/anaconda3/envs/rapids/share/jupyter/lab
Running as root is not recommended. Use --allow-root to bypas
  1. jupyter lab --allow-root terminal OUTPUT:
[I 15:00:04.091 LabApp] JupyterLab extension loaded from /root/anaconda3/envs/rapids/lib/python3.7/site-packages/jupyterlab
[I 15:00:04.091 LabApp] JupyterLab application directory is /root/anaconda3/envs/rapids/share/jupyter/lab
[I 15:00:04.139 LabApp] Serving notebooks from local directory: /root
[I 15:00:04.139 LabApp] Jupyter Notebook 6.1.5 is running at:
[I 15:00:04.139 LabApp] http://localhost:8888/?token=LONGTOKEN
[I 15:00:04.139 LabApp]  or http://127.0.0.1:8888/?token=LONGTOKEN
[I 15:00:04.139 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:00:04.234 LabApp]

    To access the notebook, open this file in a browser:
        file:///root/.local/share/jupyter/runtime/nbserver-500-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=LONGTOKEN
     or http://127.0.0.1:8888/?token=LONGTOKEN
Start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1

I can not log in with the given URL CHROME:

This site can’t be reached 127.0.0.1 refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
  1. I try than with jupyter lab --allow-root --no-browser TERMINAL OUTPUT
[I 15:02:33.527 LabApp] JupyterLab extension loaded from /root/anaconda3/envs/rapids/lib/python3.7/site-packages/jupyterlab
[I 15:02:33.527 LabApp] JupyterLab application directory is /root/anaconda3/envs/rapids/share/jupyter/lab
[I 15:02:33.575 LabApp] Serving notebooks from local directory: /root
[I 15:02:33.575 LabApp] Jupyter Notebook 6.1.5 is running at:
[I 15:02:33.575 LabApp] http://localhost:8888/?token=LONGTOKEN
[I 15:02:33.575 LabApp]  or http://127.0.0.1:8888/?token=LONGTOKEN
[I 15:02:33.575 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:02:33.578 LabApp]

    To access the notebook, open this file in a browser:
        file:///root/.local/share/jupyter/runtime/nbserver-564-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=LONGTOKEN
     or http://127.0.0.1:8888/?token=LONGTOKEN

I can not log in with the given URL CHROME:

This site can’t be reached127.0.0.1 refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
  1. I have tried modifying the local host URL port number but non of them logged in: 8888, 8889, 8000, 8001, 8002, 8003

Already tried

sogu
  • 1,789
  • 4
  • 20
  • 63

0 Answers0