How to recover deleted Jupyter notebook cell?

HISI picture HISI · Feb 15, 2018 · Viewed 70.3k times · Source

I use Jupyter notebook. I accidentally deleted a cell, and I can't go step back.

How can I recover the notebook cell?

Answer

TYZ picture TYZ · Feb 15, 2018

If you go to "Edit", there's an option for "Undo Delete Cells".

If you are familiar with shortcuts, you can do cmd + shift + p and then type in undo to recover as well. No need to moving your mouse around.