Saved in:
Bibliographic Details
Main Authors: Kashiwa, Shun, Kurdak, Ayla, Ravi, Savitha, Srikanth, Ridhi, Thakur, Angel, Chandra, Sonia, Truong, Jonathan, Coblenz, Michael
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.22726
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914416939761664
author Kashiwa, Shun
Kurdak, Ayla
Ravi, Savitha
Srikanth, Ridhi
Thakur, Angel
Chandra, Sonia
Truong, Jonathan
Coblenz, Michael
author_facet Kashiwa, Shun
Kurdak, Ayla
Ravi, Savitha
Srikanth, Ridhi
Thakur, Angel
Chandra, Sonia
Truong, Jonathan
Coblenz, Michael
contents The quality of scientific code is a critical concern for the research community. Poorly written code can result in irreproducible results, incorrect findings, and slower scientific progress. In this study, we evaluate scientific code quality across three dimensions: reproducibility, readability, and reusability. We curated a corpus of 518 code repositories by analyzing Code Availability statements from all 1239 Nature publications in 2024. To assess code quality, we employed multiple methods, including manual attempts to reproduce Jupyter notebooks, documentation reviews, and analyses of code clones and mutation patterns. Our results reveal major challenges in scientific code quality. Of the 19 notebooks we attempted to execute, only two were reproducible, primarily due to missing data files and dependency issues. Code duplication was also common, with 326 clone classes of at least 10 lines and three instances found among 637 of the 1510 notebooks in our corpus. These duplications frequently involved tasks such as visualization, data processing, and statistical analysis. Moreover, our mutation analysis showed that scientific notebooks often exhibit tangled state changes, complicating comprehension and reasoning. The prevalence of these issues -- unreproducible code, widespread duplication, and tangled state management -- underscores the need for improved tools and abstractions to help science build reproducible, readable and reusable software.
format Preprint
id arxiv_https___arxiv_org_abs_2603_22726
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle A Study of Scientific Computational Notebook Quality
Kashiwa, Shun
Kurdak, Ayla
Ravi, Savitha
Srikanth, Ridhi
Thakur, Angel
Chandra, Sonia
Truong, Jonathan
Coblenz, Michael
Software Engineering
The quality of scientific code is a critical concern for the research community. Poorly written code can result in irreproducible results, incorrect findings, and slower scientific progress. In this study, we evaluate scientific code quality across three dimensions: reproducibility, readability, and reusability. We curated a corpus of 518 code repositories by analyzing Code Availability statements from all 1239 Nature publications in 2024. To assess code quality, we employed multiple methods, including manual attempts to reproduce Jupyter notebooks, documentation reviews, and analyses of code clones and mutation patterns. Our results reveal major challenges in scientific code quality. Of the 19 notebooks we attempted to execute, only two were reproducible, primarily due to missing data files and dependency issues. Code duplication was also common, with 326 clone classes of at least 10 lines and three instances found among 637 of the 1510 notebooks in our corpus. These duplications frequently involved tasks such as visualization, data processing, and statistical analysis. Moreover, our mutation analysis showed that scientific notebooks often exhibit tangled state changes, complicating comprehension and reasoning. The prevalence of these issues -- unreproducible code, widespread duplication, and tangled state management -- underscores the need for improved tools and abstractions to help science build reproducible, readable and reusable software.
title A Study of Scientific Computational Notebook Quality
topic Software Engineering
url https://arxiv.org/abs/2603.22726