恢复 Jupyter 笔记本的执行环境
软件工程
2021-03-05 v1
摘要
超过百分之九十的已发布 Jupyter 笔记本未声明对外部包的依赖。这导致它们不可执行,从而阻碍科学结果的可复现性。我们提出 SnifferDog,一种 1)收集 Python 包及其版本的 API 并构建 API 数据库;2)分析笔记本以确定所需包与版本的候选;3)检查哪些包是使笔记本可执行(并理想地复现其存储结果)所必需的的方法。在评估中,我们表明 SnifferDog 能为绝大多数笔记本精确恢复执行环境,使其对终端用户立即可执行。
引用
@article{arxiv.2103.02959,
title = {Restoring Execution Environments of Jupyter Notebooks},
author = {Jiawei Wang and Li Li and Andreas Zeller},
journal= {arXiv preprint arXiv:2103.02959},
year = {2021}
}
备注
to be published in the 43rd ACM/IEEE International Conference on Software Engineering (ICSE 2021)