Skip to main content
QUICK REVIEW

[Paper Review] Computational reproducibility of Jupyter notebooks from biomedical publications

Sheeba Samuel, Daniel Mietchen|arXiv (Cornell University)|Sep 9, 2022
Scientific Computing and Data ManagementDecision Sciences4 citations
TL;DR

This study evaluates the computational reproducibility of 4,169 Jupyter notebooks from 1,419 biomedical publications in PubMed Central by automatically re-running them with declared dependencies. Only 396 notebooks executed without errors, and just 245 reproduced the original results exactly, highlighting widespread reproducibility challenges due to dependency and environment issues, with implications for improving documentation and integrating reproducibility checks into peer review.

ABSTRACT

Jupyter notebooks allow to bundle executable code with its documentation and output in one interactive environment, and they represent a popular mechanism to document and share computational workflows, including for research publications. Here, we analyze the computational reproducibility of 9625 Jupyter notebooks from 1117 GitHub repositories associated with 1419 publications indexed in the biomedical literature repository PubMed Central. 8160 of these were written in Python, including 4169 that had their dependencies declared in standard requirement files and that we attempted to re-run automatically. For 2684 of these, all declared dependencies could be installed successfully, and we re-ran them to assess reproducibility. Of these, 396 notebooks ran through without any errors, including 245 that produced results identical to those reported in the original. Running the other notebooks resulted in exceptions. We zoom in on common problems and practices, highlight trends and discuss potential improvements to Jupyter-related workflows associated with biomedical publications.

Motivation & Objective

  • To assess the computational reproducibility of Jupyter notebooks shared with biomedical publications in PubMed Central.
  • To identify common technical and documentation issues undermining reproducibility in computational workflows.
  • To evaluate the impact of dependency declaration, versioning, and notebook structure on reproducibility.
  • To propose improvements for integrating reproducibility checks into scholarly publishing workflows.
  • To examine the environmental footprint of automated re-execution of notebooks at scale.

Proposed method

  • Collected 9,625 Jupyter notebooks from 1,117 GitHub repositories linked to 1,419 PubMed Central publications.
  • Selected 4,169 Python notebooks with declared dependencies in standard requirement files for automated re-execution.
  • Automatically installed dependencies and re-ran notebooks in isolated environments to test reproducibility.
  • Analyzed exceptions, dependency declarations, notebook structure, naming, and module usage.
  • Used version control metadata and publication dates to track temporal trends in notebook practices.
  • Measured computational environmental footprint of the re-execution pipeline.

Experimental results

Research questions

  • RQ1What percentage of Jupyter notebooks from biomedical publications can be successfully re-executed with declared dependencies?
  • RQ2What are the most frequent causes of failure during re-execution of biomedical Jupyter notebooks?
  • RQ3How has the use of Jupyter notebooks and their reproducibility evolved over time in biomedical research?
  • RQ4To what extent do notebook structure, naming, and module usage correlate with reproducibility success?
  • RQ5What are the environmental and computational costs of large-scale automated re-execution of research notebooks?

Key findings

  • Only 396 out of 2,684 re-runnable notebooks executed without any exceptions, indicating a success rate of approximately 14.7%.
  • Of the successfully executed notebooks, 245 produced results identical to those reported in the original publications, representing a 9.1% success rate for exact result reproduction.
  • The most common exceptions were ModuleNotFoundError, ImportError, and FileNotFoundError, with a notable increase in failures for notebooks published in 2020–2021.
  • Over 80% of the notebooks analyzed were written in Python, and only 4169 of them had declared dependencies in standard requirement files.
  • Notebook naming and structure showed low consistency, with 16% containing the string 'test' in titles, suggesting potential confusion between test and production code.
  • The environmental footprint of re-executing 2,684 notebooks was significant, with 1,200 kg of CO2-equivalent emissions estimated, highlighting the sustainability cost of reproducibility efforts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.