FlowBook: Enforcing Reproducibility in Computational Notebooks

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Freund, Stephen N., Berger, Emery D., Flanagan, Cormac, Jun, Eunice
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915974373965824
author Freund, Stephen N.
Berger, Emery D.
Flanagan, Cormac
Jun, Eunice
author_facet Freund, Stephen N.
Berger, Emery D.
Flanagan, Cormac
Jun, Eunice
contents Computational notebooks are notoriously prone to reproducibility failures. By permitting out-of-order cell execution, notebooks accumulate hidden state and implicit dependencies that cause interactive executions to silently diverge from clean top-to-bottom runs. Prior approaches either employ dependency analyses or enforce reactive dataflow models that face fundamental tradeoffs among expressiveness, precision, and performance. This paper exploits the insight that reproducibility can be enforced without precise dependency tracking: a notebook is reproducible if and only if executing its cells in top-to-bottom order from an empty store produces exactly the outputs currently recorded. We formalize this notion of reproducibility and present FlowBook, which implements a dynamic analysis that enforces reproducibility by tracking read and write sets at cell boundaries. FlowBook detects stale cells whose recorded outputs may no longer reflect the current notebook state and prevents operations that would violate reproducibility. FlowBook incurs near-imperceptible latency overhead (median: 70 ms).
format Preprint
id arxiv_https___arxiv_org_abs_2605_01560
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle FlowBook: Enforcing Reproducibility in Computational Notebooks
Freund, Stephen N.
Berger, Emery D.
Flanagan, Cormac
Jun, Eunice
Programming Languages
Human-Computer Interaction
Computational notebooks are notoriously prone to reproducibility failures. By permitting out-of-order cell execution, notebooks accumulate hidden state and implicit dependencies that cause interactive executions to silently diverge from clean top-to-bottom runs. Prior approaches either employ dependency analyses or enforce reactive dataflow models that face fundamental tradeoffs among expressiveness, precision, and performance. This paper exploits the insight that reproducibility can be enforced without precise dependency tracking: a notebook is reproducible if and only if executing its cells in top-to-bottom order from an empty store produces exactly the outputs currently recorded. We formalize this notion of reproducibility and present FlowBook, which implements a dynamic analysis that enforces reproducibility by tracking read and write sets at cell boundaries. FlowBook detects stale cells whose recorded outputs may no longer reflect the current notebook state and prevents operations that would violate reproducibility. FlowBook incurs near-imperceptible latency overhead (median: 70 ms).
title FlowBook: Enforcing Reproducibility in Computational Notebooks
topic Programming Languages
Human-Computer Interaction
url https://arxiv.org/abs/2605.01560