How to recover deleted iPython Notebooks

后端 未结 12 870
礼貌的吻别
礼貌的吻别 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:32

    I think the easiest way (until developers handle this issue) to retrieve your Ipython history is to write them all into an empty file.

    You need to check by the date you created your last script. Obviously, it is going to be the last part of your Ipython history.

    To write your Ipython history into a file:

    %history -g -f anyfilename
    

提交回复
热议问题