简体   繁体   English

(是)iPython Notebook中的内核繁忙

[英](is) kernel busy in ipython notebook

I'm using an EC2 spot instance (my windows to ubuntu instance) to run a function that was well beyond my laptop's capabilities. 我正在使用EC2竞价型实例(从Windows到ubuntu实例)来运行远远超出笔记本电脑功能的功能。 The kernel busy dot has been filled for hours. 内核繁忙点已填充了几个小时。 Previously, I would just listen to my laptop as it was obvious when something was running as opposed to ipnb getting stuck. 以前,我只是听我的笔记本电脑,因为在运行某件事而不是ipnb卡住时很明显。 Is there any way I can tell now? 现在有什么办法可以告诉我吗?

If I try something like 1+1 in the box below my function it will also turn into an asterisk, but I can open a new notebook and have zero issues running simple commands in the new notebook. 如果在函数下方的框中尝试类似1 + 1之类的内容,它也会变成一个星号,但是我可以打开一个新笔记本,在新笔记本中运行简单命令的问题为零。

this is because all though each notebook has multiple cells but only one kernel, so the commands in the other cells are queued until the first cell finishes its task. 这是因为尽管每个笔记本都具有多个单元,但是只有一个内核,所以其他单元中的命令将排队,直到第一个单元完成其任务。 When you open a new notebook that notebook is provided with its own kernel so it can do other simple commands quickly without attempting whatever it is that's taking so much cpu power 当您打开一个新笔记本时,该笔记本具有自己的内核,因此它可以快速执行其他简单命令,而无需尝试占用大量CPU的功能

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

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