{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,10]],"date-time":"2026-11-10T17:45:20Z","timestamp":1794332720576,"version":"4.9.0"},"reference-count":37,"publisher":"Association for Computing Machinery (ACM)","issue":"6","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2021,2]]},"abstract":"<jats:p>Computational notebooks have emerged as the platform of choice for data science and analytical workflows, enabling rapid iteration and exploration. By keeping intermediate program state in memory and segmenting units of execution into so-called \"cells\", notebooks allow users to enjoy particularly tight feedback. However, as cells are added, removed, reordered, and rerun, this hidden intermediate state accumulates, making execution behavior difficult to reason about, and leading to errors and lack of reproducibility. We present nbsafety, a custom Jupyter kernel that uses runtime tracing and static analysis to automatically manage lineage associated with cell execution and global notebook state. nbsafety detects and prevents errors that users make during unaided notebook interactions, all while preserving the flexibility of existing notebook semantics. We evaluate nbsafety's ability to prevent erroneous interactions by replaying and analyzing 666 real notebook sessions. Of these, nbsafety identified 117 sessions with potential safety errors, and in the remaining 549 sessions, the cells that nbsafety identified as resolving safety issues were more than 7X more likely to be selected by users for re-execution compared to a random baseline, even though the users were not using nbsafety and were therefore not influenced by its suggestions.<\/jats:p>","DOI":"10.14778\/3447689.3447712","type":"journal-article","created":{"date-parts":[[2021,4,12]],"date-time":"2021-04-12T16:20:06Z","timestamp":1618244406000},"page":"1093-1101","source":"Crossref","is-referenced-by-count":30,"title":["Fine-grained lineage for safer notebook interactions"],"prefix":"10.14778","volume":"14","author":[{"given":"Stephen","family":"Macke","sequence":"first","affiliation":[{"name":"University of Illinois (UIUC) and University of California"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Hongpu","family":"Gong","sequence":"additional","affiliation":[{"name":"University of California"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Doris Jung-Lin","family":"Lee","sequence":"additional","affiliation":[{"name":"University of California"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Andrew","family":"Head","sequence":"additional","affiliation":[{"name":"University of California"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Doris","family":"Xin","sequence":"additional","affiliation":[{"name":"University of California"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Aditya","family":"Parameswaran","sequence":"additional","affiliation":[{"name":"University of California"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2021,4,12]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"2018 (accessed December 1 2020). Datalore. https:\/\/datalore.jetbrains.com\/.  2018 (accessed December 1 2020). Datalore. https:\/\/datalore.jetbrains.com\/."},{"key":"e_1_2_1_2_1","unstructured":"2020. GitHub Search API. https:\/\/developer.github.com\/v3\/search\/. Date accessed: 2020-07-29.  2020. GitHub Search API. https:\/\/developer.github.com\/v3\/search\/. Date accessed: 2020-07-29."},{"key":"e_1_2_1_3_1","unstructured":"2020. sys: System-specific parameters and functions. https:\/\/docs.python.org\/2\/library\/sys.html#sys.settrace. Date accessed: 2020-07-29.  2020. sys: System-specific parameters and functions. https:\/\/docs.python.org\/2\/library\/sys.html#sys.settrace. Date accessed: 2020-07-29."},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.5555\/6448"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-02279-1_18"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.14778\/2824032.2824035"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/s13740-012-0004-y"},{"key":"e_1_2_1_8_1","unstructured":"Mike Brachmann William Spoth Oliver Kennedy Boris Glavic Heiko Mueller Sonia Castelo Carlos Bautista and Juliana Freire. 2020. Your notebook is not crumby enough REPLace it.. In CIDR.  Mike Brachmann William Spoth Oliver Kennedy Boris Glavic Heiko Mueller Sonia Castelo Carlos Bautista and Juliana Freire. 2020. Your notebook is not crumby enough REPLace it.. In CIDR."},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/974750.974752"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3313831.3376729"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.5555\/1717145"},{"key":"e_1_2_1_12_1","first-page":"44","article-title":"Provenance in Scientific Workflow Systems","volume":"30","author":"Davidson Susan B","year":"2007","unstructured":"Susan B Davidson , Sarah Cohen Boulakia , 2007 . Provenance in Scientific Workflow Systems . IEEE Data Eng. Bull. 30 , 4 (2007), 44 -- 50 . Susan B Davidson, Sarah Cohen Boulakia, et al. 2007. Provenance in Scientific Workflow Systems. IEEE Data Eng. Bull. 30, 4 (2007), 44--50.","journal-title":"IEEE Data Eng. Bull."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/1376616.1376772"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389754"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3035918.3058747"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1265530.1265535"},{"key":"e_1_2_1_17_1","unstructured":"Joel Grus. 2018 (accessed June 26 2020). I Don't Like Notebooks (JupyterCon 2018 Talk). https:\/\/t.ly\/Wt3S.  Joel Grus. 2018 (accessed June 26 2020). I Don't Like Notebooks (JupyterCon 2018 Talk). https:\/\/t.ly\/Wt3S."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389736"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/3290605.3300500"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-017-0486-1"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.14778\/3115404.3115417"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3173574.3173748"},{"key":"e_1_2_1_23_1","unstructured":"Thomas Kluyver et al. 2016. Jupyter Notebooks-a publishing format for reproducible computational workflows.. In ELPUB. 87--90.  Thomas Kluyver et al. 2016. Jupyter Notebooks-a publishing format for reproducible computational workflows.. In ELPUB. 87--90."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.5555\/3183865.3183888"},{"key":"e_1_2_1_25_1","volume-title":"Guo","author":"Lau Sam","year":"2020","unstructured":"Sam Lau , Ian Drosos , Julia M. Markel , and Philip J . Guo . 2020 . The Design Space of Computational Notebooks: An Analysis of 60 Systems in Academia and Industry . In Proceedings of the IEEE Symposium on Visual Languages and Human-Centric Computing (VL\/HCC) (VL\/HCC '20). Sam Lau, Ian Drosos, Julia M. Markel, and Philip J. Guo. 2020. The Design Space of Computational Notebooks: An Analysis of 60 Systems in Academia and Industry. In Proceedings of the IEEE Symposium on Visual Languages and Human-Centric Computing (VL\/HCC) (VL\/HCC '20)."},{"key":"e_1_2_1_26_1","unstructured":"Stephen Macke. 2020 (accessed July 29 2020). NBSafety Experiments. https:\/\/github.com\/nbsafety-project\/nbsafety-experiments\/.  Stephen Macke. 2020 (accessed July 29 2020). NBSafety Experiments. https:\/\/github.com\/nbsafety-project\/nbsafety-experiments\/."},{"key":"e_1_2_1_27_1","unstructured":"Stephen Macke and Hongpu Gong. 2020 (accessed July 29 2020). NBSafety. https:\/\/github.com\/nbsafety-project\/nbsafety\/.  Stephen Macke and Hongpu Gong. 2020 (accessed July 29 2020). NBSafety. https:\/\/github.com\/nbsafety-project\/nbsafety\/."},{"key":"e_1_2_1_29_1","volume-title":"Static program analysis. Notes. Feb","author":"M\u00f8ller Anders","year":"2012","unstructured":"Anders M\u00f8ller and Michael I Schwartzbach . 2012. Static program analysis. Notes. Feb ( 2012 ). Anders M\u00f8ller and Michael I Schwartzbach. 2012. Static program analysis. Notes. Feb (2012)."},{"key":"e_1_2_1_30_1","volume-title":"Why Jupyter is data scientists' computational notebook of choice. Nature 563, 7732","author":"Perkel Jeffrey M","year":"2018","unstructured":"Jeffrey M Perkel . 2018. Why Jupyter is data scientists' computational notebook of choice. Nature 563, 7732 ( 2018 ), 145--147. Jeffrey M Perkel. 2018. Why Jupyter is data scientists' computational notebook of choice. Nature 563, 7732 (2018), 145--147."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2019.00077"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.5555\/3199517.3199522"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/3186728.3164140"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/3173574.3173606"},{"key":"e_1_2_1_35_1","volume-title":"Interactive notebooks: Sharing the code. Nature 515, 7525","author":"Shen Helen","year":"2014","unstructured":"Helen Shen . 2014. Interactive notebooks: Sharing the code. Nature 515, 7525 ( 2014 ), 151--152. Helen Shen. 2014. Interactive notebooks: Sharing the code. Nature 515, 7525 (2014), 151--152."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3132847.3132954"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389738"},{"key":"e_1_2_1_38_1","unstructured":"Kevin Zielnicki. 2017 (accessed July 5 2020). Nodebook. https:\/\/multithreaded.stitchfix.com\/blog\/2017\/07\/26\/nodebook\/.  Kevin Zielnicki. 2017 (accessed July 5 2020). Nodebook. https:\/\/multithreaded.stitchfix.com\/blog\/2017\/07\/26\/nodebook\/."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3447689.3447712","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,28]],"date-time":"2022-12-28T11:21:21Z","timestamp":1672226481000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3447689.3447712"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,2]]},"references-count":37,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2021,2]]}},"alternative-id":["10.14778\/3447689.3447712"],"URL":"https:\/\/doi.org\/10.14778\/3447689.3447712","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2021,2]]}}}