Lune

CHI2021Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Slide4N: Creating Presentation Slides from Computational Notebooks with Human-AI Collaboration cites TRACTUS: Understanding and Supporting Source Code Experimentation in Hypothesis-Driven Data Science
  • Slide4N: Creating Presentation Slides from Computational Notebooks with Human-AI Collaboration cites Composing Flexibly-Organized Step-by-Step Tutorials from Linked Source Code, Snippets, and Outputs
  • Slide4N: Creating Presentation Slides from Computational Notebooks with Human-AI Collaboration cites What's Wrong with Computational Notebooks? Pain Points, Needs, and Design Opportunities
  • Slide4N: Creating Presentation Slides from Computational Notebooks with Human-AI Collaboration cites Telling Stories from Computational Notebooks: AI-Assisted Presentation Slides Creation for Presenting Data Science Work
  • OutlineSpark: Igniting AI-powered Presentation Slides Creation from Computational Notebooks through Outlines cites Slide4N: Creating Presentation Slides from Computational Notebooks with Human-AI Collaboration
  • OutlineSpark: Igniting AI-powered Presentation Slides Creation from Computational Notebooks through Outlines cites TRACTUS: Understanding and Supporting Source Code Experimentation in Hypothesis-Driven Data Science
  • OutlineSpark: Igniting AI-powered Presentation Slides Creation from Computational Notebooks through Outlines cites What's Wrong with Computational Notebooks? Pain Points, Needs, and Design Opportunities
  • OutlineSpark: Igniting AI-powered Presentation Slides Creation from Computational Notebooks through Outlines cites Telling Stories from Computational Notebooks: AI-Assisted Presentation Slides Creation for Presenting Data Science Work
  • Telling Stories from Computational Notebooks: AI-Assisted Presentation Slides Creation for Presenting Data Science Work cites Composing Flexibly-Organized Step-by-Step Tutorials from Linked Source Code, Snippets, and Outputs
  • Telling Stories from Computational Notebooks: AI-Assisted Presentation Slides Creation for Presenting Data Science Work cites What's Wrong with Computational Notebooks? Pain Points, Needs, and Design Opportunities
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. On the Design of AI-powered Code Assistants for NotebooksAndrew M. McNutt, Chenglong Wang, Robert A. DeLine, Steven Mark DruckerCHI 2023 · 78 citations
  2. 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
  3. 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
  4. Slide4N: Creating Presentation Slides from Computational Notebooks with Human-AI CollaborationFengjie Wang, Xuye Liu, Oujing Liu, Ali Neshati et al.CHI 2023 · 37 citations
  5. 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

  1. 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
  2. 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
  3. TRACTUS: Understanding and Supporting Source Code Experimentation in Hypothesis-Driven Data ScienceKrishna Subramanian, Johannes Maas, Jan O. BorchersCHI 2020 · 14 citations

Related papers

  1. NB2P: Generating Data Science Pipelines from Computational NotebooksHaotian Gao, Quang Trung Ta, Tien Tuan Anh Dinh, Nhut-Minh Ho et al.ICSE 2026
  2. HAConvGNN: Hierarchical Attention Based Convolutional Graph Neural Network for Code Documentation Generation in Jupyter NotebooksXuye Liu, Dakuo Wang, April Yi Wang, Yufang Hou et al.EMNLP Findings 2021 · 11 citations
  3. 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
  4. ToonNote: Improving Communication in Computational Notebooks Using Interactive Data ComicsDaye Kang, Tony Ho, Nicolai Marquardt, Bilge Mutlu et al.CHI 2021 · 42 citations
  5. Finding Related Tables in Data Lakes for Interactive Data ScienceYi Zhang, Zachary G. IvesSIGMOD 2020 · 98 citations
Dusk over the sea between two cliffs drawn in fine vertical lines