NBSearch: Semantic Search and Visual Exploration of Computational Notebooks
Xingjun Li, Yuanxin Wang, Hong Wang, Yang Wang, Jian Zhao
Abstract
Code search is an important and frequent activity for developers using computational notebooks (e.g., Jupyter). The flexibility of notebooks brings challenges for effective code search, where classic search interfaces for traditional software code may be limited. In this paper, we propose, NBSearch, a novel system that supports semantic code search in notebook collections and interactive visual exploration of search results. NBSearch leverages advanced machine learning models to enable natural language search queries and intuitive visualizations to present complicated intra- and inter-notebook relationships in the returned results. We developed NBSearch through an iterative participatory design process with two experts from a large software company. We evaluated the models with a series of experiments and the whole system with a controlled user study. The results indicate the feasibility of our analytical pipeline and the effectiveness of NBSearch to support code search in large notebook collections.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0dc1e34a-3dea-4611-9e5e-9839e2e43cf5Cited by top-tier papers8
- On the Design of AI-powered Code Assistants for NotebooksAndrew M. McNutt, Chenglong Wang, Robert A. DeLine, Steven Mark DruckerCHI 2023 · 78 citations
- Cells, Generators, and Lenses: Design Framework for Object-Oriented Interaction with Large Language ModelsTae Soo Kim, Yoonjoo Lee, Minsuk Chang, Juho KimUIST 2023 · 55 citations
- Telling Stories from Computational Notebooks: AI-Assisted Presentation Slides Creation for Presenting Data Science WorkChengbo Zheng, Dakuo Wang, April Yi Wang, Xiaojuan MaCHI 2022 · 53 citations
- Slide4N: Creating Presentation Slides from Computational Notebooks with Human-AI CollaborationFengjie Wang, Xuye Liu, Oujing Liu, Ali Neshati et al.CHI 2023 · 37 citations
- OutlineSpark: Igniting AI-powered Presentation Slides Creation from Computational Notebooks through OutlinesFengjie Wang, Yanna Lin, Leni Yang, Haotian Li et al.CHI 2024 · 19 citations
Builds on3
- What's Wrong with Computational Notebooks? Pain Points, Needs, and Design OpportunitiesSouti Chattopadhyay, Ishita Prasad, Austin Z. Henley, Anita Sarma et al.CHI 2020 · 162 citations
- Composing Flexibly-Organized Step-by-Step Tutorials from Linked Source Code, Snippets, and OutputsAndrew Head, Jason Jiang, James Smith, Marti A. Hearst et al.CHI 2020 · 29 citations
- TRACTUS: Understanding and Supporting Source Code Experimentation in Hypothesis-Driven Data ScienceKrishna Subramanian, Johannes Maas, Jan O. BorchersCHI 2020 · 14 citations
Related papers
- NB2P: Generating Data Science Pipelines from Computational NotebooksHaotian Gao, Quang Trung Ta, Tien Tuan Anh Dinh, Nhut-Minh Ho et al.ICSE 2026
- Code Code Evolution: Understanding How People Change Data Science Notebooks Over TimeDeepthi Raghunandan, Aayushi Roy, Shenzhi Shi, Niklas Elmqvist et al.CHI 2023 · 19 citations
- ToonNote: Improving Communication in Computational Notebooks Using Interactive Data ComicsDaye Kang, Tony Ho, Nicolai Marquardt, Bilge Mutlu et al.CHI 2021 · 42 citations
- Finding Related Tables in Data Lakes for Interactive Data ScienceYi Zhang, Zachary G. IvesSIGMOD 2020 · 98 citations
- InterLink: Linking Text with Code and Output in Computational NotebooksYanna Lin, Leni Yang, Haotian Li, Huamin Qu et al.CHI 2025 · 10 citations
