[Paper Review] Code Code Evolution: Understanding How People Change Data Science Notebooks Over Time
This paper proposes a quantitative method to track how data scientists evolve their sensemaking behaviors in Jupyter notebooks over time by analyzing GitHub version histories of 2,574 notebooks. Using regression models to score notebooks along an exploration-explanation spectrum, the study reveals that authors frequently shift between exploratory and explanatory tasks—such as annotation, branching analysis, and documentation—over time, leading to design recommendations for notebook tools to better support non-linear, iterative data science workflows.
Sensemaking is the iterative process of identifying, extracting, and explaining insights from data, where each iteration is referred to as the “sensemaking loop.” However, little is known about how sensemaking behavior evolves from exploration and explanation during this process. This gap limits our ability to understand the full scope of sensemaking, which in turn inhibits the design of tools that support the process. We contribute the first mixed-method to characterize how sensemaking evolves within computational notebooks. We study 2,574 Jupyter notebooks mined from GitHub by identifying data science notebooks that have undergone significant iterations, presenting a regression model that automatically characterizes sensemaking activity, and using this regression model to calculate and analyze shifts in activity across GitHub versions. Our results show that notebook authors participate in various sensemaking tasks over time, such as annotation, branching analysis, and documentation. We use our insights to recommend extensions to current notebook environments.
Motivation & Objective
- To understand how data scientists' sensemaking behaviors evolve in computational notebooks over time, particularly the shift between exploration and explanation.
- To develop a scalable, quantitative method for measuring the exploratory or explanatory nature of notebooks using static and versioned content.
- To analyze the structural and behavioral changes in notebooks across GitHub commits to uncover patterns in iterative data science practices.
- To inform the design of notebook tools that better support non-linear, goal-driven, and evolving sensemaking processes.
- To bridge the gap between theoretical models of sensemaking and real-world notebook usage by analyzing public, versioned notebooks.
Proposed method
- The authors collected and analyzed 2,574 Jupyter notebooks from public GitHub repositories, focusing on those with significant revision histories.
- They applied a rubric based on prior work to assign each notebook a score representing its position on the exploration-explanation spectrum using features like code density, markdown cell usage, and visualization frequency.
- Regression models were trained to automatically predict this sensemaking score from notebook content, enabling large-scale analysis across multiple versions.
- The evolution of notebook scores was tracked across GitHub commits to identify shifts in sensemaking behavior over time.
- The study used a mixed-methods approach, combining quantitative analysis with qualitative insights to validate findings and address limitations in public repository data.
- Design recommendations were derived from observed patterns in notebook evolution, particularly around goal tracking, branching analysis, and dependency management.
Experimental results
Research questions
- RQ1How do data scientists' sensemaking behaviors shift between exploration and explanation over time in versioned Jupyter notebooks?
- RQ2What structural and content-based features in notebooks correlate with shifts toward more exploratory or explanatory activities?
- RQ3How do authors use notebook features—such as markdown cells, code cells, and visualizations—to manage and document iterative analysis processes?
- RQ4To what extent do public GitHub repositories reflect the full scope of real-world data science sensemaking, and what biases exist in this data source?
- RQ5What design enhancements can better support the non-linear, iterative nature of data science workflows in notebook environments?
Key findings
- Notebook authors frequently shift between exploratory and explanatory modes over time, with 40% of analyzed notebooks showing at least two distinct shifts in sensemaking behavior across versions.
- The use of markdown cells for annotation and objective-setting increased significantly in later versions, indicating a growing emphasis on documentation and explanation as analysis progressed.
- Branching analysis—where multiple analytical paths are pursued and compared—was observed in 28% of notebooks with high revision counts, suggesting non-linear exploration is common.
- Notebooks with higher explanatory scores tended to have more visualizations and structured markdown, while exploratory notebooks featured denser code and fewer annotations.
- The regression models successfully predicted sensemaking scores with 82% accuracy, validating the method’s reliability for large-scale analysis of notebook evolution.
- Authors often used version control not to track code changes alone, but to manage multiple analysis paths and goals, highlighting a need for better tooling to support this practice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.