WHATSNEXT: Guidance-enriched Exploratory Data Analysis with Interactive, Low-Code Notebooks

Chen Chen, Jane Hoffswell, Shunan Guo, Ryan Rossi, Yeuk-Yin Chan, Fan Du, Eunyee Koh, Zhicheng LiuarXiv 2023

TL;DR

WHATSNEXT is a novel interactive notebook framework designed to lower the barrier for exploratory data analysis (EDA). By augmenting standard computational notebooks with a no-code recommendation panel and a dynamic tree visualization of analysis threads, it helps users—especially those with limited coding expertise—navigate complex, branching data investigations with ease.

What Problem Does This Paper Address?

While computational notebooks like Jupyter are the gold standard for data science, they suffer from two major drawbacks:

  1. High Barrier to Entry: They are heavily code-reliant, making them inaccessible to "citizen data scientists" (e.g., managers or doctors) who need insights but cannot program.
  2. Linearity vs. Reality: Notebooks typically present a single, linear thread of cells. However, real-world EDA is non-linear and branching. A user might explore three different ways to group a bar chart; in a standard notebook, these appear as a confusing sequence of cells, obscuring the logical "provenance" or history of the analysis.

Methods

The authors developed WHATSNEXT, which introduces two core UI components into the notebook environment:

  • No-Code Interaction Panel: Instead of writing code from scratch, users are presented with a list of recommended follow-up questions (e.g., "What might explain the fact that 1980 has the lowest average horsepower?") based on the current cell's visualization. Clicking a question automatically generates the next analysis step.
  • Analysis Thread Visualization: A dynamic tree diagram (shown in Fig. 1) that maps the dependencies between cells. This allows users to see where analysis branches, jump between steps, and even restore deleted cells.

The system's backend (detailed in Fig. 2) uses the Voder algorithm to extract data insights (anomalies, correlations, distributions, and extrema). It then applies a set of logical retrieval rules to convert these raw insights into natural language questions.

Fig. 2: The architectural pipeline of WHATSNEXT. With a new notebook cell’s metadata, WHATSNEXT renders the corresponding visualizations(s) (Cell Rendering), searches for both logically-related and attribute-related insights, turns them into questions, and populates these questions in the interaction panel (Question Retrieval). The Analysis Thread Visualization Update happens in real-time. Click events on the questions from the user (User Interaction) further create new cells, making the process iterative.

Datasets

The paper demonstrates the system using a sample cars dataset (containing attributes like horsepower, weight, origin, and year). This dataset is used to illustrate how a user can start with a simple observation about low horsepower in 1980 and drill down into contributing factors like vehicle weight or origin.

Key Insights and Ideas

  • Insight-Driven Recommendations: The system doesn't just suggest random charts; it uses specific logical rules to find "explanations." For example, if a user sees an extremum (a record low), the system looks for correlations or anomalies in related variables that might explain why that low occurred.
  • Provenance as a First-Class Citizen: By treating the analysis as a tree rather than a list, the system makes the "history" of an idea tangible. Users can "prune" branches (delete cells) without losing the context, as the tree maintains a grayed-out history for easy restoration.
  • Bridging the Gap: The design goals (DG1-DG4) focus on making EDA "low-code" and "insight-driven." This shifts the user's effort from how to write the code to what questions to ask next.
TABLE I: Rules for logically-related insight retrieval based on the insight type. WHATSNEXT searches for an insight (combination) that has a logical connection to the given insight to support reasoning and drill-down analysis, and reflect low-level analytic tasks. Four insight types are considered: [Ext]remum, [Cor]relation, [Ano]maly, and [Dis]tribution.

Key Results

The paper presents a functional prototype that successfully integrates these features into a notebook-style interface.

  • Qualitative Success: The authors demonstrate that the system can handle complex branching scenarios (as seen in Fig. 1) that would typically result in a "messy" standard notebook.
  • Efficiency: The automated pipeline (Fig. 2) allows for real-time updates to both the recommendation panel and the analysis tree, ensuring the interface remains responsive during active exploration.
Fig. 1: The interface and sample use case of WHATSNEXT. The core UI features are a new, no-code interaction panel that recommends follow-up questions A and the analysis thread visualization of the exploration structure B ; the user can quickly generate new notebook cells 2-6 by selecting recommended follow-up questions 2-6 . Other simple interactions allow the user to explore, delete, and restore cells from the analysis history C-E . The sample cars dataset is available at https://goo.gl/9G1egz.

Limitations and Future Work

The authors identify several areas for improvement:

  • Scalability: As an analysis grows, the tree visualization might become too large and cluttered to navigate effectively.
  • Customization: Currently, users cannot explicitly define their own analysis intents; they must choose from the system's generated recommendations.
  • Thread Management: Future versions could support "thread decomposition," allowing users to break a single large notebook into multiple disjoint, manageable sub-threads.

Summary updated

BibTeX
@misc{chen2023whatsnext,
  author = {Chen Chen and Jane Hoffswell and Shunan Guo and Ryan Rossi and Yeuk-Yin Chan and Fan Du and Eunyee Koh and Zhicheng Liu},
  title = {{WHATSNEXT: Guidance-enriched Exploratory Data Analysis with Interactive, Low-Code Notebooks}},
  year = {2023},
  eprint = {2308.09802},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.09802},
}
Figure