Jupyter (formerly known as IPython) notebooks are great – but have you ever accidentally deleted a cell that contained a really important function that you want to keep? Well, this post might help you get it back.
Jupyter(以前称为IPython)笔记本非常棒-但是您是否偶然删除了包含要保留的非常重要功能的单元格? 好吧,这篇文章可能会帮助您找回。
So, imagine you have a notebook with the following code:
因此,假设您有一个带有以下代码的笔记本:
and then you accidentally delete the top cell, with the definition of your function…oops! Furthermore, you can’t find it in any of your ‘Checkpoints’ (look under the File menu). Luckily, your function is still defined…so you can still run it:
然后您不小心删除了具有功能定义的顶部单元格……糟糕! 此外,您无法在任何“检查点”中找到它&#