简体   繁体   中英

Cannot open PDF file in Jupyter Notebook (Chrome)

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 错误: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 Modified304 未修改

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)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM