【发布时间】:2013-07-04 09:12:47
【问题描述】:
我开始熟悉 ipython,现在我变成了一个奇怪的错误:Kernel Has Died 谁能建议一个简单的工作流程来解决这个问题?
[IPKernelApp] --existing kernel-dc484a8e-c822-46b1-bc6d-a1e019a67258.json
[NotebookApp] Kernel dc484a8e-c822-46b1-bc6d-a1e019a67258 failed to respond to heartbeat
我也变成了:
"The kernel has died, would you like to restart it? If you do not restart the kernel, you will be able to save the notebook, but running code will not work until the notebook is reopened."
当我尝试运行指令时总是会出现这个问题:
pieces = {'G-C': Cond.ix[:, [1]],
'G-M': M.ix[:, [1]],
'G-M+A': MA.ix[:, [1]],
'G-M+T': MT.ix[:, [1]],
'G-L': L.ix[:, [1]],
'G-L+A': MA.ix[:, [1]],
'G-L+T': LT.ix[:, [1]]
}
【问题讨论】:
-
您应该提供更多详细信息。哪个版本的 IPython?哪个操作系统?你在做一些具体的事情吗……等等
-
我正在使用 IPython3 和 ubuntu 13.04。我想连接几个表中的列。
-
这是行不通的指令:{pieces = {'G-C': Cond.ix[:, [1]], 'G-M': M.ix[:, [1]], 'G-M+A': MA.ix[:, [1]], 'G-M+T': MT.ix[:, [1]], 'G-L': L .ix[:, [1]], 'G-L+A': MA.ix[:, [1]], 'G-L+T': LT.ix[:, [1]] }}
-
您能找出导致崩溃的数据对象(
Cond.、M等)吗?尝试在笔记本的单个单元格中执行每个.ix语句。
标签: kernel ipython python-3.3 ipython-notebook