How do I restore a deleted cell in the ipython notebook?

Asked 2 years ago, Updated 2 years ago, 18 views

In the ipython notebook, you can restore multiple cells that you accidentally deleted with "cut cell" or return them to the first state you opened.

Edit → Undo Delete Cell only returns one.

Since it has been auto-saved, is it impossible to restore...?

I can't help but regret it because I didn't copy it.
Please help me...

Windows I use Windows.

python

2022-09-30 19:12

1 Answers

If the cell you want to restore is a cell that you have previously evaluated,

>>>%history

You can view the history in , or check the history of past entries in the list In.

Also, I have never tried it, but if a checkpoint is created, it seems that you can return it to the checkpoint using File->Revert to Checkpoint on the menu.


2022-09-30 19:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.