jupyter notebook 中的 id 字段,例如 "wound-transition" 来自哪里,它是什么意思?

Where does the id field, eg "wound-transition" in a jupyter notebook come from and what does it mean?

如果您查看 jupyter notebook 的原始 JSON(在本例中为 python),每个单元格都有一个标记为“id”的字段,它们似乎由连字符组成随机的单词对,而且通常很有趣。几个随机示例:

 "id": "rough-girlfriend",
 "id": "wound-transition"
 "id": "orange-biography"
 "id": "mediterranean-viking",

我进行了一些谷歌搜索,但我似乎无法找到有关这些字段的任何信息!他们的意思是什么?他们来自哪里?它们是如何生成的?

非常感谢任何信息。

从本质上讲,它们似乎旨在提供人类可读的细胞标识符。 enhancement proposal. The document also points to the exact implementation in nbformat.

中对此类字段的必要性有更长的解释

它们很有趣,因为它们是由随机名词和随机形容词组成的。不过,我个人觉得它们很烦人,因为它们往往会发生意外变化,使 git 差异变得难看。