arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.07452cs.DC
收藏

一个捕获和再现笔记本电脑绝对状态的框架

A Framework to capture and reproduce the Absolute State of Jupyter Notebooks

Dimuthu Wannipurage, Suresh Marru, Marlon Pierce

摘要:

笔记本是一个非常流行的工具,用于创建和叙述计算研究项目。它们还具有创造可复制的科学研究文物的巨大潜力。捕获笔记本的完整状态具有额外的好处;例如,笔记本的执行可以在本地和远程资源之间分割,其中后者可能具有更强大的处理能力或存储大型或访问受限的数据。在详细检查时,使笔记本电脑完全可再现存在几个挑战。notebook代码必须完全复制,并且底层Python运行时环境必须相同。在复制引用的数据、外部库依赖项和运行时变量状态时会出现更微妙的问题。本文提出了这些问题的解决方案,使用Kontyer的标准扩展机制,创建一个可归档的系统状态运行的笔记本电脑。我们表明,这些额外的机制,其中涉及与底层Linux内核的互动,并没有引入大量的执行时间开销,表明该方法的可行性的开销。

英文摘要:

Jupyter Notebooks are an enormously popular tool for creating and narrating computational research projects. They also have enormous potential for creating reproducible scientific research artifacts. Capturing the complete state of a notebook has additional benefits; for instance, the notebook execution may be split between local and remote resources, where the latter may have more powerful processing capabilities or store large or access-limited data. There are several challenges for making notebooks fully reproducible when examined in detail. The notebook code must be replicated entirely, and the underlying Python runtime environments must be identical. More subtle problems arise in replicating referenced data, external library dependencies, and runtime variable states. This paper presents solutions to these problems using Juptyer's standard extension mechanisms to create an archivable system state for a running notebook. We show that the overhead for these additional mechanisms, which involve interacting with the underlying Linux kernel, does not introduce substantial execution time overheads, demonstrating the approach's feasibility.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑