简体   繁体   English

Jupyter笔记本网页为黑屏

[英]Jupyter notebook webpage is a blank screen

So I bought this fancy shmancy Codecademy Pro subscription to take the data science track, but it appears that it has a rather disappointing lack of documentation for part six of its course. 因此,我购买了这个花哨的shcadecy Codecademy Pro订阅以获取数据科学的轨道,但看起来它的第六部分课程缺乏相当令人失望的文档。 I'm learning about Python right now, and I just downloaded the newest version of Miniconda, which included Python 3.7.2. 我现在正在学习Python,我刚刚下载了Miniconda的最新版本,其中包括Python 3.7.2。 I'm trying to open a .zip file (called Reggie's Linear Regression.zip) using the command 我正在尝试使用以下命令打开.zip文件(称为Reggie's Linear Regression.zip)

jupyter notebook

and it works, to some extent; 它在一定程度上有效; it automatically launches a Chrome page, but it's just blank. 它会自动启动Chrome页面,但它只是空白。 I get this error in the Chrome console: 我在Chrome控制台中收到此错误:

Refused to execute script from '<URL>' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

I want it to show this file: Reggie_Linear_Regression_Skeleton.ipynb. 我希望它显示此文件:Reggie_Linear_Regression_Skeleton.ipynb。 It just opens in my notes app when I click on it in file explorer. 当我在文件浏览器中单击它时,它就会在我的笔记应用程序中打开。

I'm very new to Python and downloading libraries and stuff (this is actually my first time), so even just pointing me to other resources that would help me with this problem would be helpful as I don't even know how to describe the issue. 新的Python和下载库之类的东西(其实这是我第一次),所以即使只是指着我的其他资源,以帮助我解决这个问题将是有益的,因为我不知道怎么形容问题。 Also, I'm 100% sure I've navigated to the correct folder in the Anaconda prompt. 另外,我100%确定我已导航至Anaconda提示符中的正确文件夹。

Thanks so much 非常感谢

The latest version seems to be broken, try to downgrade jupyter. 最新版本似乎被打破,尝试降级jupyter。 If you install with Anaconda the command is: 如果使用Anaconda安装,则命令为:

conda install -c anaconda notebook=5.7.4

Yeah, looks like the latest version is broken. 是的,看起来最新版本已经坏了。 There is already a pull request but it is not yet merged https://github.com/jupyter/notebook/pull/4468 . 已有拉取请求,但尚未合并https://github.com/jupyter/notebook/pull/4468 That is a pretty simple fix, so you can also do it yourself for the time being https://github.com/jupyter/notebook/pull/4468/files 这是一个非常简单的修复,所以你也可以自己做它暂时https://github.com/jupyter/notebook/pull/4468/files

I was facing the same issue. 我面临同样的问题。

Downgrade jupyter notebook. 降级jupyter笔记本。 If you face the blank page againg, after opening jupyter notebook on broswer press "ctrl+f5" to force restart the page. 如果你面对空白页面,在broswer打开jupyter笔记本后按“ctrl + f5”强制重启页面。

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

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