Predicting Code Edits with Large Language Models: A Breakthrough in Jupyter Notebook Development

Sunday 09 March 2025


Researchers have made a significant breakthrough in understanding how large language models (LLMs) can be used to predict code edits in Jupyter notebooks, a popular tool for data scientists and machine learning developers.


For those who may not know, LLMs are artificial intelligence systems trained on vast amounts of text data to generate human-like language. In the context of coding, these models can learn to recognize patterns and relationships between different lines of code, allowing them to predict what changes a developer might make to a program.


The researchers in this study focused specifically on Jupyter notebooks, which are interactive computing environments that allow users to write and execute code in a web-based interface. These notebooks are particularly useful for data scientists and machine learning developers, who often need to perform complex calculations and visualize their results in real-time.


To develop their model, the researchers collected a dataset of 48,398 Jupyter notebook edits from over 20,000 revisions across 792 machine learning repositories on GitHub. This dataset was then used to train an LLM to predict code changes at both the file-level and cell-level.


The results were impressive: the model was able to accurately predict code changes with a high degree of accuracy, even when faced with complex and nuanced editing tasks. In fact, the researchers found that larger models performed better than smaller ones, suggesting that more training data and computational resources can lead to improved performance.


But what does this mean for developers? For one, it could help automate many of the tedious and time-consuming tasks associated with coding, such as debugging and testing. It could also enable developers to focus on higher-level tasks, such as designing and implementing new features, rather than getting bogged down in the details of writing code.


The study’s findings also have implications for the development of artificial intelligence systems more broadly. As LLMs become increasingly sophisticated, they may be able to perform a wider range of tasks that were previously thought to be the exclusive domain of humans.


Of course, there are still many challenges to overcome before these models can be widely adopted in real-world applications. For example, the model’s performance was not uniform across all types of code changes, and it struggled with more complex editing tasks. Additionally, the dataset used to train the model may not be representative of all possible Jupyter notebook edits.


Despite these limitations, the study’s findings are an important step forward in understanding how LLMs can be used to predict code edits in Jupyter notebooks.


Cite this article: “Predicting Code Edits with Large Language Models: A Breakthrough in Jupyter Notebook Development”, The Science Archive, 2025.


Large Language Models, Code Edits, Jupyter Notebooks, Machine Learning, Data Scientists, Artificial Intelligence, Github, Predictive Modeling, Code Generation, Natural Language Processing


Reference: Bihui Jin, Jiayue Wang, Pengyu Nie, “Suggesting Code Edits in Interactive Machine Learning Notebooks Using Large Language Models” (2025).


Leave a Reply