Managing Messes in Computational Notebooks

Andrew Head, Fred Hohman, Titus Barik, Steven M. Drucker and Robert DeLine

Abstract

Data analysts use computational notebooks to write code for analyzing and visualizing data. Notebooks help analysts iteratively write analysis code by letting them interleave code with output, and selectively execute cells. However, as analysis progresses, analysts leave behind old code and outputs, and overwrite important code, producing cluttered and inconsistent notebooks. This paper introduces code gathering tools, extensions to computational notebooks that help analysts find, clean, recover, and compare versions of code in cluttered, inconsistent notebooks. The tools archive all versions of code outputs, allowing analysts to review these versions and recover the subsets of code that produced them. These subsets can serve as succinct summaries of analysis activity or starting points for new analyses. In a qualitative usability study, 12 professional analysts found the tools useful for cleaning notebooks and writing analysis code, and discovered new ways to use them, like generating personal documentation and lightweight versioning.

Venue
CHI 2019
Volume
Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3290605.3300500
PDF
https://dl.acm.org/doi/pdf/10.1145/3290605.3300500
Anthology ID
2019.chi.268

Cite

@inproceedings{head-etal-2019-managing,
    title = {{Managing Messes in Computational Notebooks}},
    author = {Andrew Head and Fred Hohman and Titus Barik and Steven M. Drucker and Robert DeLine},
    booktitle = {Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems},
    isbn = {9781450359702},
    year = {2019},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3290605.3300500},
    url = {https://doi.org/10.1145/3290605.3300500},
    abstract = {Data analysts use computational notebooks to write code for analyzing and visualizing data. Notebooks help analysts iteratively write analysis code by letting them interleave code with output, and selectively execute cells. However, as analysis progresses, analysts leave behind old code and outputs, and overwrite important code, producing cluttered and inconsistent notebooks. This paper introduces code gathering tools, extensions to computational notebooks that help analysts find, clean, recover, and compare versions of code in cluttered, inconsistent notebooks. The tools archive all versions of code outputs, allowing analysts to review these versions and recover the subsets of code that produced them. These subsets can serve as succinct summaries of analysis activity or starting points for new analyses. In a qualitative usability study, 12 professional analysts found the tools useful for cleaning notebooks and writing analysis code, and discovered new ways to use them, like generating personal documentation and lightweight versioning.}
}