Aiding Collaborative Reuse of Computational Notebooks with Annotated Cell Folding

Adam Rule, Ian Drosos, Aurélien Tabard and James D. Hollan

Abstract

Computational notebooks aim to support collaborative data analysis by combining code, visualizations, and text in a single easily shared document. Yet, as notebooks evolve and grow they often become difficult to navigate or understand, discouraging sharing and reuse. We present the design and evaluation of a Jupyter Notebook extension providing facilities for annotated cell folding. Through a lab study and multi-week deployment we find cell folding aids notebook navigation and comprehension, not only by the original author, but also by collaborators viewing the notebook in a meeting or revising it on their own. However, in some cases cell folding encouraged collaborators to overlook folded sections or spend longer reviewing a notebook before editing it. These findings extend our understanding of code folding's trade-offs to a new medium and demonstrate its benefits for everyday collaboration. We conclude by discussing how dynamic reorganization can support sharing and reuse of computational notebooks.

Venue
CSCW 2018
Volume
Proceedings of the ACM on Human-Computer Interaction, Volume 2, Issue CSCW
DOI
10.1145/3274419
PDF
https://dl.acm.org/doi/pdf/10.1145/3274419
Anthology ID
2018.pacm-cscw.133

Cite

@article{rule-etal-2018-aiding,
    title = {{Aiding Collaborative Reuse of Computational Notebooks with Annotated Cell Folding}},
    author = {Adam Rule and Ian Drosos and Aurélien Tabard and James D. Hollan},
    journal = {Proceedings of the ACM on Human-Computer Interaction},
    volume = {2},
    number = {CSCW},
    issn = {2573-0142},
    year = {2018},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3274419},
    url = {https://doi.org/10.1145/3274419},
    abstract = {Computational notebooks aim to support collaborative data analysis by combining code, visualizations, and text in a single easily shared document. Yet, as notebooks evolve and grow they often become difficult to navigate or understand, discouraging sharing and reuse. We present the design and evaluation of a Jupyter Notebook extension providing facilities for annotated cell folding. Through a lab study and multi-week deployment we find cell folding aids notebook navigation and comprehension, not only by the original author, but also by collaborators viewing the notebook in a meeting or revising it on their own. However, in some cases cell folding encouraged collaborators to overlook folded sections or spend longer reviewing a notebook before editing it. These findings extend our understanding of code folding's trade-offs to a new medium and demonstrate its benefits for everyday collaboration. We conclude by discussing how dynamic reorganization can support sharing and reuse of computational notebooks.}
}