Fork It: Supporting Stateful Alternatives in Computational Notebooks
Abstract
Computational notebooks, which seamlessly interleave code with results, have become a popular tool for data scientists due to the iterative nature of exploratory tasks. However, notebooks provide a single execution state for users to manipulate through creating and manipulating variables. When exploring alternatives, data scientists must carefully create many-step manipulations in visually distant cells. We conducted formative interviews with 6 professional data scientists, motivating design principles behind exposing multiple states. We introduce forking — creating a new interpreter session — and backtracking — navigating through previous states. We implement these interactions as an extension to notebooks that help data scientists more directly express and navigate through decision points a single notebook. In a qualitative evaluation, 11 professional data scientists found the tool would be useful for exploring alternatives and debugging code to create a predictive model. Their insights highlight further challenges to scaling this functionality.
- Venue
- CHI 2021
- Volume
- Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems
- DOI
- 10.1145/3411764.3445527
- https://dl.acm.org/doi/pdf/10.1145/3411764.3445527
- Anthology ID
2021.chi.484
Cite
@inproceedings{weinman-etal-2021-fork,
title = {{Fork It: Supporting Stateful Alternatives in Computational Notebooks}},
author = {Nathaniel Weinman and Steven M. Drucker and Titus Barik and Robert DeLine},
booktitle = {Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems},
isbn = {9781450380966},
year = {2021},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3411764.3445527},
url = {https://doi.org/10.1145/3411764.3445527},
abstract = {Computational notebooks, which seamlessly interleave code with results, have become a popular tool for data scientists due to the iterative nature of exploratory tasks. However, notebooks provide a single execution state for users to manipulate through creating and manipulating variables. When exploring alternatives, data scientists must carefully create many-step manipulations in visually distant cells. We conducted formative interviews with 6 professional data scientists, motivating design principles behind exposing multiple states. We introduce forking — creating a new interpreter session — and backtracking — navigating through previous states. We implement these interactions as an extension to notebooks that help data scientists more directly express and navigate through decision points a single notebook. In a qualitative evaluation, 11 professional data scientists found the tool would be useful for exploring alternatives and debugging code to create a predictive model. Their insights highlight further challenges to scaling this functionality.}
}