简体   繁体   English

Python jupyter notebook 更新错误

[英]Python jupyter notebook update bug

I've been using Juptyer Notebook for more than a year now with python3 and I recently saw through the Anaconda Navigator that an update to the 5.7.0 version was available.我已经在 python3 上使用 Juptyer Notebook 一年多了,最近我通过 Anaconda Navigator 看到 5.7.0 版本的更新可用。 I installed it but the first Notebook that I tried to launch wouldn't work : I run the most simple expressions such as:我安装了它,但我尝试启动的第一个 Notebook 不起作用:我运行了最简单的表达式,例如:

test = [1,2,3]
print(len(test))

It keeps buffering and nothing comes out of this.它一直在缓冲,没有任何结果。 Additionally, when I try to define a function, the font doesn't become green and bold like always.此外,当我尝试定义一个函数时,字体不会像往常一样变成绿色和粗体。

Then I tried to go back to the older version, and that didn't work too.然后我尝试回到旧版本,但也没有用。 Now I'm back with the up-to-date version but still doesn't work.现在我回到了最新版本,但仍然无法正常工作。

I'm on a Windows machine and I don't know very much about source code or precise things to look for in this case.我在 Windows 机器上,我不太了解源代码或在这种情况下要查找的精确内容。

Could you please follow the below steps and share the feedback.您能否按照以下步骤操作并分享反馈。 It seems that new update installed in a different path.似乎新更新安装在不同的路径中。

Step 1:- Get an Anaconda command prompt and run jupyter notebook in it, It will probably won't work, but you could get a detail error message saying what's failing.第 1 步:- 获取 Anaconda 命令提示符并在其中运行jupyter notebook ,它可能无法工作,但您可能会收到一条详细的错误消息,说明发生了什么故障。

Step 2:- After your anaconda update, if that's left over from the older version of Anaconda.第 2 步:- 在 anaconda 更新后,如果旧版本的 Anaconda 遗留了该问题。 The shortcut properties might tell you what it's trying to call - there may be a wrong path to Anaconda or something wrong, so you can go to anaconda desktop shortcut, then right click on it and check the properties.快捷方式属性可能会告诉您它试图调用什么 - Anaconda 的路径可能有误或有问题,因此您可以转到 anaconda 桌面快捷方式,然后右键单击它并检查属性。 And also run the %appdata% command in windows 'Run' and check the installed anaconda app data directory.并在 Windows 'Run' 中运行 %appdata% 命令并检查已安装的 anaconda 应用程序数据目录。

Stop 3:- If the shortcut was the issue.停止 3:- 如果快捷方式是问题所在。 You can manually change the "Shortcut target" (in windows) to the following您可以手动将“快捷方式目标”(在 Windows 中)更改为以下内容

Eg: C:\\Users\\'yourusername'\\AppData\\Local\\Continuum\\Anaconda2\\Scripts\\jupyter-notebook.exe例如:C:\\Users\\'yourusername'\\AppData\\Local\\Continuum\\Anaconda2\\Scripts\\jupyter-notebook.exe

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

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