# On Code Reuse from StackOverflow: An Exploratory Study on Jupyter Notebook

arXiv: https://arxiv.org/abs/2302.11732 · HTML: https://mlsanity.com/paper/2302.11732/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 23 Feb 2023.

## Built on by (most cited first, 2 of 2)

- [Coding in a Bubble? Evaluating LLMs in Resolving Context Adaptation Bugs During Code Adaptation](https://mlsanity.com/paper/2601.06497/) (2026)
- [On the Relation between Code Quality and Machine Learning Performance: A Large-scale Empirical Study](https://mlsanity.com/paper/2609.10610/) (2026)

## Abstract (arXiv)

Jupyter Notebook is a popular tool among data analysts and scientists for working with data. It provides a way to combine code, documentation, and visualizations in a single, interactive environment, facilitating code reuse. While code reuse can improve programming efficiency, it can also decrease readability, security, and overall performance. We conduct a large-scale exploratory study of code reuse practices in the Jupyter Notebook development community on the Stack Overflow platform to understand the potential negative impacts of code reuse. Our findings identified 1,097,470 Jupyter Notebook clone pairs that reuse Stack Overflow code snippets, and the average code snippet has 7.91 code quality violations. Through our research, we gain insight into the reasons behind Jupyter Notebook developers' decision to reuse code and the potential drawbacks of this practice.
