问题描述
在ipython笔记本上工作时,由于内核似乎停止运行,最终我不得不按Ctrl + C.
While working in an ipython notebook, eventually I had to Ctrl+C as the kernel seemed to be halted.
控制台给我的消息是:
[NotebookApp] Kernel shutdown: 5faa86bf-........f6
[NotebookApp] Kernel shutdown: 71........22
[NotebookApp] ....
(我有三个笔记本在运行)
(I had three notebooks running)
但是出了点问题,我的笔记本文件.ipynb是空的(实际上只有我一直在使用的那个文件).
But something went wrong and my notebook file.ipynb is empty (actually only the one I was actively using).
在删除该文件之前,是否有办法恢复该文件?是在哪里保存自动保存的版本或手动保存的版本?
Is there a way to recover that file before it was deleted? Some place where automatically-saved o manually-saved versions are stored?
(在Windows 7中运行python 2.7(Anaconda))
(Running python 2.7 (Anaconda) in Windows 7)
推荐答案
您可以在笔记本所在的文件夹中的.ipynb_checkpoints/
中检入最新版本的IPython.
You can check in .ipynb_checkpoints/
in the folder where your notebook was for recent enough version of IPython.
这篇关于如何恢复内核崩溃后清空的笔记本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!