Typhon: Automatic Recommendation of Relevant Code Cells in Jupyter Notebooks

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ragkhitwetsagul, Chaiyong, Prasertpol, Veerakit, Ritta, Natanon, Sae-Wong, Paphon, Noraset, Thanapon, Choetkiertikul, Morakot
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929343837503488
author Ragkhitwetsagul, Chaiyong
Prasertpol, Veerakit
Ritta, Natanon
Sae-Wong, Paphon
Noraset, Thanapon
Choetkiertikul, Morakot
author_facet Ragkhitwetsagul, Chaiyong
Prasertpol, Veerakit
Ritta, Natanon
Sae-Wong, Paphon
Noraset, Thanapon
Choetkiertikul, Morakot
contents At present, code recommendation tools have gained greater importance to many software developers in various areas of expertise. Having code recommendation tools has enabled better productivity and performance in developing the code in software and made it easier for developers to find code examples and learn from them. This paper proposes Typhon, an approach to automatically recommend relevant code cells in Jupyter notebooks. Typhon tokenizes developers' markdown description cells and looks for the most similar code cells from the database using text similarities such as the BM25 ranking function or CodeBERT, a machine-learning approach. Then, the algorithm computes the similarity distance between the tokenized query and markdown cells to return the most relevant code cells to the developers. We evaluated the Typhon tool on Jupyter notebooks from Kaggle competitions and found that the approach can recommend code cells with moderate accuracy. The approach and results in this paper can lead to further improvements in code cell recommendations in Jupyter notebooks.
format Preprint
id arxiv_https___arxiv_org_abs_2405_09075
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Typhon: Automatic Recommendation of Relevant Code Cells in Jupyter Notebooks
Ragkhitwetsagul, Chaiyong
Prasertpol, Veerakit
Ritta, Natanon
Sae-Wong, Paphon
Noraset, Thanapon
Choetkiertikul, Morakot
Software Engineering
At present, code recommendation tools have gained greater importance to many software developers in various areas of expertise. Having code recommendation tools has enabled better productivity and performance in developing the code in software and made it easier for developers to find code examples and learn from them. This paper proposes Typhon, an approach to automatically recommend relevant code cells in Jupyter notebooks. Typhon tokenizes developers' markdown description cells and looks for the most similar code cells from the database using text similarities such as the BM25 ranking function or CodeBERT, a machine-learning approach. Then, the algorithm computes the similarity distance between the tokenized query and markdown cells to return the most relevant code cells to the developers. We evaluated the Typhon tool on Jupyter notebooks from Kaggle competitions and found that the approach can recommend code cells with moderate accuracy. The approach and results in this paper can lead to further improvements in code cell recommendations in Jupyter notebooks.
title Typhon: Automatic Recommendation of Relevant Code Cells in Jupyter Notebooks
topic Software Engineering
url https://arxiv.org/abs/2405.09075