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
There is a great writeup about different recovery options from "Jupyter Disasters" at [1].
I want to quote one technique from there, namely opening $HOME/.ipython/profile_default/history.sqlite
in the sqlite tool of your choice (e.g. sqlitebrowser) and digging around in there. This can be an option if there is no usable checkpoint file (as discussed in other answers).
[1] https://medium.com/flatiron-engineering/recovering-from-a-jupyter-disaster-27401677aeeb