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).
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)*