Jupyter Notebook 检查点文件的用途是什么? [英] What are Jupyter Notebook checkpoint files for?

查看:172
本文介绍了Jupyter Notebook 检查点文件的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了原始的 Jupyter Notebook 文件(.ipynb 文件),有时我还会得到一个检查点 .ipynb 文件,它似乎直接链接到原始的 .ipynb 文件.

Besides the original Jupyter Notebook file (.ipynb file), sometimes I get a checkpoint .ipynb file which seems to be directly linked to the original .ipynb file.

这些检查点文件的用途是什么?

What's the purpose of these checkpoint files?

是什么导致它们被生成(有时我会得到这种检查点文件,有时我不会)?

And what causes them to be generated (sometimes I get this sort of checkpoint file, and sometimes I don't)?

推荐答案

Jupyter 每次创建 .ipynb 文件时都会创建一个检查点文件,然后每次你更新检查点文件手动保存初始.ipynb的进度.

Jupyter creates a checkpoint file every single time you create an .ipynb file, and then it updates the checkpoint file every single time you manually save your progress for the initial .ipynb.

手动保存是通过单击保存和检查点按钮保存文件时完成的操作:

A manual save is what's done when the file is saved by clicking the Save and Checkpoint button:

另一方面,自动保存仅更新初始 .ipynb 文件,而不是检查点文件.

Auto-saving, on the other hand, updates only the initial .ipynb file, not the checkpoint file.

当您使用 Revert to Checkpoint 按钮从初始 .ipynb 文件恢复到之前保存的检查点时,检查点文件是在 Jupyter 中访问和打开的内容.

When you revert from the initial .ipynb file to a previously saved checkpoint by using the Revert to Checkpoint button, the checkpoint file is what gets accessed and opened inside Jupyter.

附带说明,检查点文件位于名为 .ipynb_checkpoints 的隐藏文件夹中.此文件夹与初始 .ipynb 文件位于同一文件夹中.

As a side note, the checkpoint file is located within a hidden folder named .ipynb_checkpoints. This folder is located within the same folder as the initial .ipynb file.

这篇关于Jupyter Notebook 检查点文件的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆