Cannot open PDF file in Jupyter Notebook (Chrome)

Viewed 1460

I usually run my Jupyter Notebook on Chrome and can directly open PDF files by clicking on the file name.

However after updating my Google Chrome browser, I noticed that I cannot open my PDF files using Jupyter Notebook anymore, and I get error message:

localhost is blocked
Requests to the server have been blocked by an extension.
Try disabling your extensions.
ERR_BLOCKED_BY_CLIENT

Chrome error: ERR_BLOCKED_BY_CLIENT

I have removed all extensions, browsing data, cookies etc. in my Chrome browser but the error still exists.

I have reinstalled my Chrome and my Anaconda several times.

I tried to debug this issue by using the inspect function by right clicking on the error page, and get 304 Not Modified 304 Not Modified

I am not sure if it is something wrong with my chrome://flags/, and I have reset all to default.

I also tried Notebook in Microsoft Edge and Mozilla Firefox, all works fine with PDFs.

However, when I rollback my Chrome version, Chrome+Jupyter is able to open PDF files.

Finally, I can simply opening a PDF file using Chrome without using Jupyter Notebook. Still, I wish to figure out why I can't open it in Jupyter anymore.

My Chrome version is: Version 88.0.4324.146 (Official Build) (64-bit)

3 Answers

Issue solved by using the latest version of chrome 92.0.4515.131 (Official Build) (64-bit) enter image description here

I had a similar issue to you, and was able to resolve it following the advice in this similar thread

My solution to this is that you should try to open it with jupyterLab. It works fine even in chrome.

Related