ReSplit: Improving the Structure of Jupyter Notebooks by Re-Splitting Their Cells
Sergey Titov, Yaroslav Golubev, and Timofey Bryksin
March, 2022. Published in the proceedings of SANER'22 (A).
Abstract. Jupyter notebooks represent a unique format for programming - a combination of code and Markdown with rich formatting, separated into individual cells. We propose to perceive a Jupyter Notebook cell as a simplified and raw version of a programming function. Similar to functions, Jupyter cells should strive to contain singular, self-contained actions. At the same time, research shows that real-world notebooks fail to do so and suffer from the lack of proper structure.
To combat this, we propose ReSplit, an algorithm for an automatic re-splitting of cells in Jupyter notebooks. The algorithm analyzes definition-usage chains in the notebook and consists of two parts - merging and splitting the cells. We ran the algorithm on a large corpus of notebooks to evaluate its performance and its overall effect on notebooks, and evaluated it by human experts: we showed them several notebooks in their original and the re-split form. In 29.5% of cases, the re-split notebook was selected as the preferred way of perceiving the code. We analyze what influenced this decision and describe several individual cases in detail.
Paper Pre-print DataCiting publications
- An LLM-Based Approach for Automatic ML Prototype Review
S Coban, M Perez, C Akpınar · … on Software Analysis … · 2026 - Human-Centered Design for Live and Responsive Programming Systems
RL Huang · 2026 - Observing fine-grained changes in Jupyter notebooks during development time
S Titov, K Grotov, C Sarasua, Y Golubev · Journal of Systems and … · 2026 - NB2P: Generating Data Science Pipelines from Computational Notebooks
H Gao, QT Ta, TTA Dinh, NM Ho, Z Huang · Proceedings of the 2026 … · 2026 - Integrating Code Metrics into Automated Documentation Generation for Computational Notebooks
MM Ghahfarokhi, H Jahantigh, A Asadi · arXiv preprint arXiv … · 2026 - From Metrics to Improvement: A Lifecycle-Aware LLM Feedback Framework for Research Software Quality
NT Islam, N Soveizi, Y Li, Z Zhao · arXiv preprint arXiv:2608.23118 · 2026 - Multicell document editor minimoremap
LYU Peng, KU MAETZEL · US Patent 12,265,800 · 2025 - Safe-DS: A Toolkit for Safe Development of Data Science Pipelines
L Reimann · 2025 - How Do Observable Users Decompose D3 Code? A Qualitative Study
M Lin, H Patel, M Lamkin, H Bako · 2025 IEEE Visualization … · 2025 - Do current language models support code intelligence for r programming language?
Z Zhao, F Fard · ACM Transactions on Software Engineering and … · 2025 - Automated and Secure System for Machine Learning Lifecycles
H Gao · 2025 - Studying Software Engineering Processes within Computational Notebooks
MS Siddik · 2025 - Predicting the understandability of computational notebooks through code metrics analysis
MM Ghahfarokhi, A Asadi, A Asgari · Empirical Software … · 2025 - How scientists use jupyter notebooks: goals, quality attributes, and opportunities
R Huang, S Ravi, M He, B Tian, S Lerner · arXiv preprint arXiv … · 2025 - A systematic literature review of software engineering research on Jupyter notebook
MS Siddik, H Li, CP Bezemer · Journal of Systems and Software · 2025 - Towards AI-assisted data science development. Decoding, visualising, and enhancing human-AI collaboration for data science workflows in practice
D Ramasamy · 2024 - Can we do better with what we have done? unveiling the potential of ML pipeline in notebooks
Y Zou, X Shan, S Tan, S Zhou · 2024 IEEE International … · 2024 - Multiverse notebook: shifting data scientists to time travelers
S Sato, T Nakamaru · Proceedings of the ACM on Programming … · 2024 - Contextualized data-wrangling code generation in computational notebooks
J Huang, D Guo, C Wang, J Gu, S Lu, JP Inala · Proceedings of the 39th … · 2024 - DistilKaggle: a distilled dataset of Kaggle Jupyter notebooks
M Mostafavi Ghahfarokhi, A Asgari · Proceedings of the 21st … · 2024 - An Alternative to Cells for Selective Execution of Data Science Pipelines
L Reimann, G Kniesel-Wünsche · 2023 IEEE/ACM 45th … · 2023 - Workflow analysis of data science code in public GitHub repositories
D Ramasamy, C Sarasua, A Bacchelli · Empirical Software … · 2023 - On code reuse from stackoverflow: An exploratory study on jupyter notebook
M Yang, Y Zhou, B Li, Y Tang · arXiv preprint arXiv:2302.11732 · 2023 - A comparison of machine learning code quality in python scripts and jupyter notebooks
K Adams, A Vilkomir, M Hills · Journal of Computing Sciences in … · 2023 - Do code quality and style issues differ across (non-) machine learning notebooks? yes!
MS Siddik, CP Bezemer · 2023 IEEE 23rd International Working … · 2023 - Automatic Restoration and Management of Computational Notebooks
S Venkatesan · 2022 - Elevating jupyter notebook maintenance tooling by identifying and extracting notebook structures
Y Jiang, C Kästner, S Zhou · 2022 IEEE International … · 2022 - A large-scale comparison of Python code in Jupyter notebooks and scripts
K Grotov, S Titov, V Sotnikov, Y Golubev · Proceedings of the 19th … · 2022
