-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jupyter Notebook does not load using ubuntu 18.04 LTS in windows 10 #191
Comments
jupyter-notebook also doesn't work. |
I had the same problem as you. This is not my solution I find it here. Thanks to Atto Yusuke_konishi. He has two methods to fix it and and I used method 1 and it worked: for jupyter lab: to make it easy to use every time:
for jupyter lab"
|
It is easier to place this setting in the jupyter_config.py file. In that way, you do not have to have an alias or editing of .bashrc # Generate jupyter_config.py if it does not exists
jupyter jupyter notebook --generate-config
# Use nano or whatever editor. I use vs code
code ${USER}/.jupyter/jupyter_notebook_config.py
# Search and uncomment `c.NotebookApp.use_redirect_file=True` and set it to False
c.NotebookApp.use_redirect_file=False In WSL 2, I had to add more to get the correct IP address. # c.NotebookApp.ip = 'localhost'
import subprocess
c.NotebookApp.ip = subprocess.run(
["hostname", "-I"], capture_output=True, text=True
).stdout.strip() |
I think you'd only run into this if you tried to set your You can find more about how to work around this issue to use the Windows browser over here: http://github.com/jupyter/notebook/issues/4594 I'm going to go ahead and close this one, as it is not a jupyter_core issue - the launched of the browser is done via the python Happy hacking! |
This need not be a Windows-only problem. Basically, the browser might not have access to user's dotfiles (e.g. Firefox installed via Perhaps this issue should be better documented - e.g. we just spent time figuring this out: https://groups.google.com/g/sage-support/c/22Uj6xrP8zo/m/7M4OYU3qDgAJ |
@ivanov Another scenario where one sees this is when jupyter is launched in crostini (a Chromeos VM); then in crostini terminal (Debian guest OS) one sees
but in the browser (Chrome running on the ChromeOS host) one sees Whereas
works just fine. |
The local host does not open on any browser.
The following error is shown.
`(venv) mayankkotambkar@LAPTOP-505GIUHT:~$ jupyter notebook
[I 09:03:50.236 NotebookApp] Serving notebooks from local directory: /home/mayankkotambkar
[I 09:03:50.237 NotebookApp] The Jupyter Notebook is running at:
[I 09:03:50.237 NotebookApp] http://localhost:8888/?token=89898adb9f0c296c9713bd70532d803321580391f1f9b7d6
[I 09:03:50.238 NotebookApp] or http://127.0.0.1:8888/?token=89898adb9f0c296c9713bd70532d803321580391f1f9b7d6
[I 09:03:50.238 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:03:50.246 NotebookApp]
Start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
The text was updated successfully, but these errors were encountered: