Here is the solution:
Add this line to your jupyter_notebook_config.py file:
c.NotebookApp.use_redirect_file = False
Here is the solution:
Add this line to your jupyter_notebook_config.py file:
c.NotebookApp.use_redirect_file = False
Hi @simon_sat - did you ever resolve this properly? Itâs 2024 and it just happened to me. Trying jupyter lab didnât work either unfortunately.
it seems like a vscode issue for me. updating vscode solved it
Issue seems with this âlocalhost:8888/treeâ.
I started Jupyter Lab it was running fine on 8888 port, then I tried running Jupyter Notebook and it was using 8889/tree it is working fine. So something causing 8888/tree port.
Already, updated all libs and also updated Jupyter Notebook didnât work.
But if used again localhost:8888/tree, it doesnât work for jupyter notebook.
I tried EVERYTHING! And you what eventually fixed it? Simply clearing my browserâs cashe. -_-
Indeed, refreshing the page via CTRL + Shift + R (cleaning cache) indeed worked for me.
I know that itâs pretty late but still I would like to share the fix. I just went to the specified location and deleted everything inside the runtime. It worked fine after that.
I got into the same problem, then I asked ChatGPT, I was told to install a lower version of JupyterNotebook - 6.5.5 (I was using 7.2.2), and it worked successfully.
For me, I run jupyter lab/notebook in miniconda3 inside Ubuntu WSL, it doesnât load because Iâm running jupyterlab in my Windows either, after stop windowsâs jupyterlab, both Jupyter Lab and Notebook in Ubuntu WSL run well.
Thanks,
As your instruction, I tried 6.5.7 and it worked,
I tried to higher then 7.0.0 and it remained blank in browser.
Solved the problem. I tried many things, and while the final thing may have fixed it, Iâm not savvy enough to know if it âfixedâ it.
In the Jupyter Config file, you change a âlocalhostâ to â0.0.0.0â
This is on the machine Iâm connecting to:
nano ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = '0.0.0.0' # Listens on all network interfaces
c.NotebookApp.open_browser = False
I ignored the above because I could have it run headless in the command, and sometimes wanted it to open in the browser.
c.NotebookApp.port = 8888 # Ensure the port matches your SSH forwarding
I then test ran Jupyter Notebook (after downgrading to 6.5.7) locally. It worked still!
When I tried it via a mobile hotspot to check the network connectivity, it still gave the error above. The way I got around it was to go to the address of âlocalhost:8888â rather than one of the three links provided. I used the token to set up a password. I can now get it to consistently run.
I tried downgrading, which may have helped.
I tried Jupyter Lab, which did not help.
I tried connecting locally over SSH, and was successful, even initially. This was only occurring when trying to connect remotely.
I solved it, but I donât know if this solution is a good way to do it: Locate the âruntimeâ folder. On my Windows system, it is located at C:\Users\Usuario\AppData\Roaming\jupyter. Inside the âjupyterâ folder, you will find the âruntimeâ folder. Rename itâfor example, to âruntime_â. Then, when you launch Jupyter Notebook from Anaconda Navigator, it should work. A new âruntimeâ folder will be created, and works.
hi the same problem happen to me but it works after leaving the page for some time like 2 or 3 minutes and everything works fine untill a new page from the site get opened it take time to show too
I literally tried everything listed on this page and your solution is the only one that worked for me. Thank you so much!