English

Error Identification Strategies for Python Jupyter Notebooks

Software Engineering 2022-07-20 v2

Abstract

Computational notebooks -- such as Jupyter or Colab -- combine text and data analysis code. They have become ubiquitous in the world of data science and exploratory data analysis. Since these notebooks present a different programming paradigm than conventional IDE-driven programming, it is plausible that debugging in computational notebooks might also be different. More specifically, since creating notebooks blends domain knowledge, statistical analysis, and programming, the ways in which notebook users find and fix errors in these different forms might be different. In this paper, we present an exploratory, observational study on how Python Jupyter notebook users find and understand potential errors in notebooks. Through a conceptual replication of study design investigating the error identification strategies of R notebook users, we presented users with Python Jupyter notebooks pre-populated with common notebook errors -- errors rooted in either the statistical data analysis, the knowledge of domain concepts, or in the programming. We then analyzed the strategies our study participants used to find these errors and determined how successful each strategy was at identifying errors. Our findings indicate that while the notebook programming environment is different from the environments used for traditional programming, debugging strategies remain quite similar. It is our hope that the insights presented in this paper will help both notebook tool designers and educators make changes to improve how data scientists discover errors more easily in the notebooks they write.

Keywords

Cite

@article{arxiv.2203.16653,
  title  = {Error Identification Strategies for Python Jupyter Notebooks},
  author = {Derek Robinson and Neil A. Ernst and Enrique Larios Vargas and Margaret-Anne D. Storey},
  journal= {arXiv preprint arXiv:2203.16653},
  year   = {2022}
}

Comments

11 pages, 5 listings, 7 tables, to be published at ICPC 2022

R2 v1 2026-06-24T10:32:35.660Z