简体   繁体   English

Jupyter Notebook 不执行单元格/代码

[英]Jupyter Notebook not executing cells/code

For some reason today my Jupyter Notebook has decided it doesn't want to execute the code in cells.出于某种原因,今天我的 Jupyter Notebook 决定不想在单元格中执行代码。 However this isn't consistent.然而这并不一致。 I'll restart the kernal, it will work for a while, but then when it runs into an error it then won't execute any code in any other cells after that without a kernal restart.我将重新启动内核,它会工作一段时间,但是当它遇到错误时,它不会在没有内核重新启动的情况下在任何其他单元格中执行任何代码。

I've seen a previous post on this but using jupyter troubleshoot only printed out all the packages and no useful information and I also don't appear to have nbextensions dubplicated anyway.我已经看过之前的帖子,但是使用jupyter troubleshoot只打印出所有包并且没有有用的信息,而且我似乎也没有复制 nbextensions。

I'm using python 3.7.8 and Jupyter_client 6.1.6我正在使用 python 3.7.8 和 Jupyter_client 6.1.6

Sorry I don't have much more information, but I'm not really sure what other information to give/look for.抱歉,我没有更多信息,但我不确定要提供/查找哪些其他信息。

What kind of errors do you mean by "when it runs into an error it then won't execute any code in any other cells after that without a kernal restart"?您所说的“当它遇到错误时,在没有内核重启的情况下它不会在任何其他单元格中执行任何代码”是什么意思?

I know that if you have In [*] instead of the run number of the cell for a long time probably you have an infinite loop in this cell or an open input (an input that waiting to your answer).我知道,如果您长时间使用 In [*] 而不是单元格的运行编号,则可能您在此单元格中存在无限循环或打开的输入(等待您回答的输入)。 Is this the situation?是这种情况吗?

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

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