简体   繁体   English

Juypter 笔记本显示空白页

[英]Juypter notebook shows blank page

I upgraded conda packages using:我使用以下方法升级了 conda 包:

Conda upgrade —all

After that Juypter Notebook shows blank screen in Google Chrome.之后,Juypter Notebook 在 Google Chrome 中显示黑屏。

  1. I did system restore.我做了系统还原。

  2. Updated Anaconda.更新 Anaconda。

  3. I removed Jupyter Notebook and reinstalled it.我删除了 Jupyter Notebook 并重新安装了它。

  4. Updated Google Chrome.更新了谷歌浏览器。

  5. Cleared browsing history and cookies.清除浏览历史和 cookies。

But nothing worked.但没有任何效果。 Any suggestions to solve this issue?有什么解决这个问题的建议吗?

我得到的空白页面的 URL 为http://localhost:8888/tree .. 当我将其更改为 127.0.0.1:8888/tree 时,它​​向我显示了通常的主页。

I encountered the same problem, but in my case I'm installing it using pip instead.我遇到了同样的问题,但在我的情况下,我使用 pip 安装它。

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.当您在浏览器(无论浏览器如何)上打开 jupyter notebook 并显示空白 jupyter 时,请尝试按( CTRL + Shift + R )它会刷新页面并清除页面中的缓存。 It works for me after I keep installing and uninstalling jupyter.在我不断安装和卸载 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.请注意,笔记本版本5.7.8对我不起作用,所以我 pip uninstall notebook 和pip install notebook==5.7.4代替。

Try conda update -all instead upgrade and give it a try.尝试conda update -all而不是升级并尝试一下。

If that doesn't work try: conda upgrade notebook如果这不起作用,请尝试: conda upgrade notebook

I assume you are getting this error " http://localhost:8888/tree" where you can't find any of your files.我假设您收到此错误“http://localhost:8888/tree”,其中您找不到任何文件。 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.当我深入研究细节时发现我使用的是笔记本版本 6.0.3,目前最新版本是 6.3.0。 This happens when you update few of the packages and jupyter notebook version is not updated.当您更新少数软件包并且未更新 jupyter notebook 版本时,就会发生这种情况。 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 .解决方案:只需转到 anaconda 提示符并通过键入命令pip install --upgrade notebook来更新您的笔记本

I had the same issue and after some time, realised that AdBlock was blocking the localhost on Google chrome.我遇到了同样的问题,一段时间后,意识到 AdBlock 阻止了 Google chrome 上的本地主机。 If I toggle off Adblock while on Jupyter, refresh the page, the notebook then shows on Google chrome如果我在 Jupyter 上关闭 Adblock,刷新页面,笔记本就会显示在谷歌浏览器上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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