B2: Bridging Code and Interactive Visualization in Computational Notebooks
Yifan Wu, Joseph M. Hellerstein, Arvind Satyanarayan
Abstract
Data scientists have embraced computational notebooks to author analysis code and accompanying visualizations within a single document. Currently, although these media may be interleaved, they remain siloed: interactive visualizations must be manually specified as they are divorced from the analysis provenance expressed via dataframes, while code cells have no access to users' interactions with visualizations, and hence no way to operate on the results of interaction. To bridge this divide, we present B2, a set of techniques grounded in treating data queries as a shared representation between the code and interactive visualizations. B2 instruments data frames to track the queries expressed in code and synthesize corresponding visualizations. These visualizations are displayed in a dashboard to facilitate interactive analysis. When an interaction occurs, B2 reifies it as a data query and generates a history log in a new code cell. Subsequent cells can use this log to further analyze interaction results and, when marked as reactive, to ensure that code is automatically recomputed when new interaction occurs. In an evaluative study with data scientists, we find that B2 promotes a tighter feedback loop between coding and interacting with visualizations. All participants frequently moved from code to visualization and vice-versa, which facilitated their exploratory data analysis in the notebook.
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 374d7c64-05a9-49d5-b144-1d2be4d6d8e0Cited by top-tier papers35
- Jigsaw: Large Language Models meet Program SynthesisNaman Jain, Skanda Vaidyanath, Arun Iyer, Nagarajan Natarajan et al.ICSE 2022 · 134 citations
- On the Design of AI-powered Code Assistants for NotebooksAndrew M. McNutt, Chenglong Wang, Robert A. DeLine, Steven Mark DruckerCHI 2023 · 78 citations
- DataParticles: Block-based and Language-oriented Authoring of Animated Unit VisualizationsYining Cao, Jane L. E, Chen Zhu-Tian, Haijun XiaCHI 2023 · 53 citations
- Improving Steering and Verification in AI-Assisted Data Analysis with Interactive Task DecompositionMajeed Kazemitabaar, Jack Williams, Ian Drosos, Tovi Grossman et al.UIST 2024 · 49 citations
- Symphony: Composing Interactive Interfaces for Machine LearningAlex Bäuerle, Ángel Alexander Cabrera, Fred Hohman, Megan Maher et al.CHI 2022 · 47 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
- Wrex: A Unified Programming-by-Example Interaction for Synthesizing Readable Code for Data ScientistsIan Drosos, Titus Barik, Philip J. Guo, Robert DeLine et al.CHI 2020 · 110 citations
- DIEL: Interactive Visualization Beyond the Here and NowYifan Wu, Remco Chang, Joseph M. Hellerstein, Arvind Satyanarayan et al.IEEE VIS 2021 · 9 citations
Related papers
- Loops: Leveraging Provenance and Visualization to Support Exploratory Data Analysis in NotebooksKlaus Eckelt, Kiran Gadhave, Alexander Lex, Marc StreitIEEE VIS 2024 · 7 citations
- Charting EDA: Characterizing Interactive Visualization Use in Computational Notebooks with a Mixed-Methods FormalismDylan Wootton, Amy Rae Fox, Evan Peck, Arvind SatyanarayanIEEE VIS 2024 · 5 citations
- NoteFlow: Leveraging Charts as Sight Glasses for Consistent and Continuous Data Flow TracingYuan Tian, Dazhen Deng, Sen Yang, Huawei Zheng et al.CHI 2026 · 1 citation
- Notable: On-the-fly Assistant for Data Storytelling in Computational NotebooksHaotian Li, Lu Ying, Haidong Zhang, Yingcai Wu et al.CHI 2023 · 38 citations
- Diff in the Loop: Supporting Data Comparison in Exploratory Data AnalysisApril Yi Wang, Will Epperson, Robert A. DeLine, Steven Mark DruckerCHI 2022 · 34 citations
