Notebook: Jupyter Notebook Blank Page Chrome. Token issue

Created on 16 Aug 2018  Â·  22Comments  Â·  Source: jupyter/notebook

Hello to all,

I opened my Jupyter Notebook today and created a new Pyhton 3 Notebook, I have not intentionally changed anything since the last time I used it, but today I'm getting a blank page and when I look in the chrome console I get these errors.

index.js:1 Uncaught SyntaxError: Invalid or unexpected token
index.js:1 Uncaught SyntaxError: Invalid or unexpected token
index.js:1 Uncaught SyntaxError: Invalid or unexpected token
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 ReferenceError: preact is not defined
at shortcuteditor.js:15
at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
at Module. (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162)
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114)
at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
check @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 TypeError: Cannot read property 'ShortcutEditor' of undefined
at notebook.js:66
at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
at Module. (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162)
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114)
at Module.init (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783)
check @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 TypeError: Cannot read property 'Notebook' of undefined
at main.js:127
at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
at Module. (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1140)
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1190
at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
at Module.emit (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1189)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:940)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)

Could anyone help find how to fix this issue. There are no errors in the terminal and I have also looked at the post

_When opening a notebook file, the browser displays a blank screen #1627_

and this did not propose any solutions.

Thank you

Most helpful comment

Solved it after a lot of pain......
I am not using Conda rather directly using python, so make adjustments accordingly for your conda setup.
The way to go is that you need to downgrade notebook, go to version 5.7.4
Then in the browser launch jupyter and press SHIFT+F5 (refresh with reset cache)

All 22 comments

Uninstall the previous version and download the new version from below link
https://www.python.org/downloads/

After install run the command in terminal as follows:
python -m pip install --upgrade pip
python -m pip install jupyter
jupyter notebook

If you get any token problem or if it may ask any password run the command :
jupyter notebook password

Enter new password , it shown like "Wroted hashed password to designation folder"
Now again Run the command:
jupyter notebook
Now enter your password:
Jupyter notebook gets launched successfully.

I am getting a similar error but only on port 8889 - see my issue posted here https://github.com/jupyter/notebook/issues/4143 did reinstalling it as per the above suggestion solve your issue?

I have the same error on port 8888

2018-11-16 1 44 01

Does anyone have any solutions for this error? I still haven't been able to get rid of it... Thanks.

I cleared all caches and cookies, and it is solved.

For me, this is caused by a chrome extension named CORS. After I uninstalled the extension, it works.
I would try to uninstall any recently installed extensions.

Hello to all,

I opened my Jupyter Notebook today and created a new Pyhton 3 Notebook, I have not intentionally changed anything since the last time I used it, but today I'm getting a blank page and when I look in the chrome console I get these errors.

index.js:1 Uncaught SyntaxError: Invalid or unexpected token
index.js:1 Uncaught SyntaxError: Invalid or unexpected token
index.js:1 Uncaught SyntaxError: Invalid or unexpected token
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 ReferenceError: preact is not defined
at shortcuteditor.js:15
at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
at Module. (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162)
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114)
at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
check @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 TypeError: Cannot read property 'ShortcutEditor' of undefined
at notebook.js:66
at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)
at Object.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1550)
at Module. (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1162)
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1114)
at Module.init (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:783)
check @ require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900
require.js?v=6da8be361b9ee26c5e721e76c6d4afce:900 TypeError: Cannot read property 'Notebook' of undefined
at main.js:127
at Object.execCb (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1690)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:865)
at Module. (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1140)
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:131
at require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1190
at each (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:56)
at Module.emit (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1189)
at Module.check (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:940)
at Module.enable (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1177)

Could anyone help find how to fix this issue. There are no errors in the terminal and I have also looked at the post

_When opening a notebook file, the browser displays a blank screen #1627_

and this did not propose any solutions.

Thank you

For me, this is caused by a chrome extension named CORS. After I uninstalled the extension, it works.
I would try to uninstall any recently installed extensions.

I tried on Edge and IE which display nothing either

I had the same "Jupyter Notebook blank page" problem.

I used to use Anaconda and Jupyter Notebook worked fine. Recently I changed to "Miniconda3-latest-Windows-x86_64" and "pip install jupyter". after cmd.exe "jupyter notebook", both Chrome and Firefox shows a blank page where I can see some valid HTML code behind.

My solution? Use Anaconda instead of Minconda.

The solution

I had the same "Jupyter Notebook blank page" problem.

I used to use Anaconda and Jupyter Notebook worked fine. Recently I changed to "Miniconda3-latest-Windows-x86_64" and "pip install jupyter". after cmd.exe "jupyter notebook", both Chrome and Firefox shows a blank page where I can see some valid HTML code behind.

My solution? Use Anaconda instead of Minconda.

The solution isnt Anaconda or Miniconda....This is happening with the latest Jupyter package installation irrespective of how you make the installation. There has to be a patch released by Jupyter to resolve this.

Right now it is best to not update the current Jupyter installations.
I even tried installing older version on Jupyter and Notebook but to no avail.

Hi, I think I am having the same problem, and it seems they jupyter notebook is never working well for me (last time, it is extremely slow), the situation now is:
win10, 64bit, anaconda (most recent version), new env named mne, the jupyter notebook for base environment is working but the one for mne is not working, showing blank page, and update jupyter does not help, here is the screen shot, thanks for your attentions.
jupyternote

I am facing a similar problem, I tried all the solutions mentioned in the discussion. I even tried reinstalling Anaconda Prompt.
Has anybody faced a similar issue?

jupyter

Solved it after a lot of pain......
I am not using Conda rather directly using python, so make adjustments accordingly for your conda setup.
The way to go is that you need to downgrade notebook, go to version 5.7.4
Then in the browser launch jupyter and press SHIFT+F5 (refresh with reset cache)

It seems it's a problem with version 5.7.6 of notebook, solved with 5.7.4
conda install notebook=5.7.4

Just confirming I had the exact same problem and downgrading with
pip --upgrade notebook==5.7.4
solved it immediately for me.

Thanks a lot, @NMNSGR 's solution worked for me.
I had tried clearing browsing history and cache through browser menu but SHIFT + F5 worked instantly after downgrading the jupyter.

I had met the same problem and solved it by downgrading with version 5.7.4
and shift+F5 does really work!

Yes!
pip install jupyter==5.7.4
Worked for me and a shift+F5 was required.

Yes!
pip install jupyter==5.7.4
Worked for me and a shift+F5 was required.

Same here

It works but wouldn't connect to kernel.

I also had to downgrade tornado
with pip - sudo python3.6 -m pip install tornado==4.5.3
with conda - conda install tornado==4.5.3

I cleared all caches and cookies, and it is solved.

I cleared all caches and cookies, and it is solved.

Solved by cleaning all caches and cookies!

I have blank page problem for a particular env, the others with old version jupyter don't have the problem.
I tried Chrome, and Edge, none is working.

Was this page helpful?
0 / 5 - 0 ratings