How to recover deleted iPython Notebooks

后端 未结 12 840
礼貌的吻别
礼貌的吻别 2020-12-03 11:05

I have iPython Notebook through Anaconda. I accidentally deleted an important notebook, and I can\'t seem to find it in trash (I don\'t think iPy Notebooks go to the trash).

12条回答
  •  庸人自扰
    2020-12-03 11:50

    As long as your Kernel is active, the code of each executed cell is stored in input history list. This will come in handy when you accidentally deleted a cell and want to retrieve its content.

    _ih[-10:] *# code of the 10 most recently run cells (Even if those cells are deleted now)*
    

提交回复
热议问题