Juypter notebook shows blank page
Asked Answered
C

8

23

I upgraded conda packages using:

Conda upgrade —all

After that Juypter Notebook shows blank screen in Google Chrome.

  1. I did system restore.

  2. Updated Anaconda.

  3. I removed Jupyter Notebook and reinstalled it.

  4. Updated Google Chrome.

  5. Cleared browsing history and cookies.

But nothing worked. Any suggestions to solve this issue?

Ceiling answered 14/3, 2019 at 0:4 Comment(1)
I just encountered the same issue and found out the file I was trying to open is not a .ipynb file, it was a .pdf file.Resurge
D
41

I was getting the blank page with the URL http://localhost:8888/tree .. when I changed it to 127.0.0.1:8888/tree it shows me the usual home page.

Dysthymia answered 14/3, 2019 at 22:54 Comment(4)
It works but why?Fortify
I had the same problem of blank page. Changed tree? to lab? that restored status quo.Milagro
Wow, big bug. They need to patch. I've never seen this before, but it happened to me today, 5 years after the original question was asked. Ugh.Assertive
This is a problem with browser caching, see github.com/jupyter/notebook/issues/7221Dolce
P
30

I encountered the same problem, but in my case I'm installing it using pip instead.

When you open the jupyter notebook on you browser (regardless of browser) and it shows you blank jupyter, try to press (CTRL + Shift + R) it will refresh the page and clear the cache in the page. It works for me after I keep installing and uninstalling jupyter.

Do note that notebook version 5.7.8 is not working for me, so I pip uninstall notebook and pip install notebook==5.7.4 instead.

Predetermine answered 25/3, 2019 at 11:6 Comment(2)
For me, the refreshing trick (CTRL + Shift + R) works and I am using notebook 5.7.8 on Windows 10 with Python 3.7.3 and Chrome as browser.Pleuropneumonia
Does not help for me.Moonier
J
2

Try conda update -all instead upgrade and give it a try.

If that doesn't work try: conda upgrade notebook

Jenelljenelle answered 14/3, 2019 at 0:8 Comment(2)
If that didnt work you can try to force open in chrome. Run jupyter lab --generate-config. open the config file generated (the generate-config command will give the path to this file). Add the following line to the config file: c.LabApp.browser = r'"C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe" --app=%s'Jenelljenelle
It already opens in Chrome, the problem it shows a blank page.Ceiling
R
2

I had the same issue and after some time, realised that AdBlock was blocking the localhost on Google chrome. If I toggle off Adblock while on Jupyter, refresh the page , the notebook then shows on Google chrome

Rudderhead answered 26/3, 2022 at 18:19 Comment(1)
Thanks this worked for me. If you have AdBlocker on your site, just disable it and it will work.Tagmemic
P
2

I know this is a little older thread but I just ran into this issue today and came across this thread.

CTRL+SHIFT+R - temporarily fixes issue and next browser session it comes back.

The solution(at least for Chromium based browsers - I'm on brave)

Disable Continue where i left off on start up

Settings->Get Started->Choose Either of the below options
- Open new tab page(one I chose)
- Open a specific page

Problem went away and works just fine for me every time now.

Pinfish answered 12/5, 2024 at 16:32 Comment(0)
D
0

I had the same problem. The browser console revealed that some JS bundle file gave a 404 error, and I eventually found that it was "just" a browser cache problem. This explains why using other browsers or synonyms for localhost can resolve this.

So the solution is: Try reloading the page while bypassing the cache (in many browsers, shift-reload should do the trick).

Dolce answered 27/5, 2024 at 16:3 Comment(0)
G
0

Delete cached images and files from your browser.

For example, for Chrome:

Settings > Privacy and Security > Delete browsing data > check the box next to "Delete cached images and files" > press "Delete data"

Then refresh your Jupyter Notebook tab

Gosselin answered 19/7, 2024 at 17:16 Comment(0)
D
-3

I assume you are getting this error " http://localhost:8888/tree" where you can't find any of your files. I was having the same problem. When I dig into the details found out I was using notebook version 6.0.3 and the latest version at the moment was 6.3.0. This happens when you update few of the packages and jupyter notebook version is not updated. After this, it took me a minute to solve the error.

Solution: Just go to anaconda prompt and update your notebook by typing the command pip install --upgrade notebook.

Dwarf answered 12/5, 2021 at 11:29 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.