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

查看:1957
本文介绍了什么是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)?

这个问题与2年前提出的问题相同(仍然没有答案):

This question is the same as this one asked more than 2 years ago (which still has no answer):

ipython notebook - 这些检查点文件是什么?

推荐答案

每次创建 .ipynb 文件时,Jupyter都会创建一个检查点文件,然后每次更新检查点文件>手动保存初始 .ipynb 的进度。手动保存是通过单击保存和检查点按钮保存文件时的操作:

Jupyter creates a checkpoint file every single time you create an .ipynb file, and then 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.

当你从最初的 .ipynb 使用 Revert to Checkpoint 按钮将文件归档到以前保存的检查点,检查点文件是在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天全站免登陆