Jupyter笔记本未运行代码.卡在[*] [英] Jupyter notebook not running code. Stuck on In [*]

查看:582
本文介绍了Jupyter笔记本未运行代码.卡在[*]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我未进行任何更改并再次运行之前,我的代码运行良好.现在它不返回任何内容,甚至没有错误.它只是卡在在[*]中"上.

My code was running fine before I did not change anything and I ran it again. Now it doesn't return anything not even an error. It is just stuck on "In [*]".

推荐答案

这意味着Jupyter仍在运行内核.您可能正在内核中运行无限循环,这就是为什么它无法完成执行的原因.

This means that Jupyter is still running the kernel. It is possible that you are running an infinite loop within the kernel and that is why it can't complete the execution.

请尝试通过按顶部的停止按钮来手动停止内核.如果这样不起作用,请通过内核"菜单中断它并重新启动它.这应该断开它.

Try manually stopping the kernel by pressing the stop button at the top. If that doesn't work, interrupt it and restart it by going to the "Kernel" menu. This should disconnect it.

否则,我建议关闭并重新打开笔记本.问题也可能出在您的代码上.

Otherwise, I would recommend closing and reopening the notebook. The problem may also be with your code.

这篇关于Jupyter笔记本未运行代码.卡在[*]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆