While working in an ipython notebook, eventually I had to Ctrl+C as the kernel seemed to be halted.
The console gave me a message like:
[NotebookApp] Ker
You can check in .ipynb_checkpoints/ in the folder where your notebook was for recent enough version of IPython.
.ipynb_checkpoints/