BISCUIT: Scaffolding LLM-Generated Code with Ephemeral UIs in Computational Notebooks
AuthorsRuijia Cheng, Titus Barik, Alan Leung, Fred Hohman, Jeffrey Nichols
BISCUIT: Scaffolding LLM-Generated Code with Ephemeral UIs in Computational Notebooks
AuthorsRuijia Cheng, Titus Barik, Alan Leung, Fred Hohman, Jeffrey Nichols
This paper was accepted at IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC) 2024.
Programmers frequently engage with machine learning tutorials in computational notebooks and have been adopting code generation technologies based on large language models (LLMs). However, they encounter difficulties in understanding and working with code produced by LLMs. To mitigate these challenges, we introduce a novel workflow into computational notebooks that augments LLM-based code generation with an additional ephemeral UI step, offering users UI scaffolds as an intermediate stage between user prompts and code generation. We present this workflow in BISCUIT, an extension for JupyterLab that provides users with ephemeral UIs generated by LLMs based on the context of their code and intentions, scaffolding users to understand, guide, and explore with LLM-generated code. Through a user study where 10 novices used BISCUIT for machine learning tutorials, we found that BISCUIT offers users representations of code to aid their understanding, reduces the complexity of prompt engineering, and creates a playground for users to explore different variables and iterate on their ideas.
Athena: Intermediate Representations for Iterative Scaffolded App Generation with an LLM
March 27, 2026research area Human-Computer Interaction, research area Tools, Platforms, Frameworks
It is challenging to generate the code for a complete user interface using a Large Language Model (LLM). User interfaces are complex and their implementations often consist of multiple, inter-related files that together specify the contents of each screen, the navigation flows between the screens, and the data model used throughout the application. It is challenging to craft a single prompt for an LLM that contains enough detail to generate a…
mage: Fluid Moves Between Code and Graphical Work in Computational Notebooks
October 8, 2020research area Human-Computer Interaction, research area Tools, Platforms, Frameworksconference UIST
We aim to increase the flexibility at which a data worker can choose the right tool for the job, regardless of whether the tool is a code library or an interactive graphical user interface (GUI). To achieve this flexibility, we extend computational notebooks with a new API mage, which supports tools that can represent themselves as both code and GUI as needed. We discuss the design of mage as well as design opportunities in the space of flexible…