B2: Bridging Code and Interactive Visualization in Computational Notebooks

B2: Bridging Code and Interactive Visualization in Computational Notebooks
复制标题

DOI:
10.1145/3379337.3415851
复制
发表时间:
2020-10
期刊:
Proceedings of the 33rd Annual ACM Symposium on User Interface Software and Technology
影响因子:
--
通讯作者:
Yifan Wu;J. Hellerstein;Arvind Satyanarayan
Yifan Wu;J. Hellerstein;Arvind Satyanarayan
中科院分区:
其他
文献类型:
--
作者:
Yifan Wu;J. Hellerstein;Arvind Satyanarayan

文献摘要

被引文献

相似文献

数据科学家已经将计算笔记本纳入作者分析代码和单个文档中随附的可视化。目前,尽管这些媒体可能交错,但它们仍保持孤立:必须手动指定交互式可视化,因为它们与通过DataFrames表示的分析出处离婚,而代码单元无法访问用户与可视化的交互,因此无法操作。关于相互作用的结果。为了弥合这种鸿沟,我们提出了B2,这是一套以将数据查询视为代码和交互式可视化之间共享表示形式的技术。 B2仪器数据框架以跟踪代码中表达的查询并合成相应的可视化。这些可视化显示在仪表板中,以促进交互式分析。当发生交互时,B2将其重新放置为数据查询,并在新的代码单元格中生成历史记录。随后的细胞可以使用该日志进一步分析相互作用的结果,并在标记为反应性时,以确保在发生新相互作用时自动重新计算代码。在与数据科学家的评估研究中,我们发现B2促进了编码和与可视化相互作用之间的更严格的反馈回路。所有参与者经常从代码转移到可视化,反之亦然,这在笔记本中促进了他们的探索性数据分析。
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.