29 April 2024 in Proceedings of the ACM on Programming Languages
Computational notebook environments are popular and de facto standard tools for programming in data science, whereas computational notebooks are notorious in software engineering. The criticism there stems from the characteristic of facilitating unrestricted dynamic patching of running programs, which makes exploratory coding quick but the resultant code messy and inconsistent. In this work, we first reveal that dynamic patching is a natural demand rather than a mere bad practice in data science programming on Kaggle. We then develop Multiverse Notebook, a computational notebook engine for time-traveling exploration. It enables users to time-travel to any past state and restart with new code from there under state isolation. We present an approach to efficiently implementing time-traveling exploration. We empirically evaluate Multiverse Notebook on ten real-world tasks from Kaggle. Our experiments show that time-traveling exploration on Multiverse Notebook is reasonably efficient.
1 January 2025 in Journal of Information Processing
For creating presentation slides, in which visual expressions are emphasized, WYSIWYG editors, such as PowerPoint, are preferred because they provide immediate feedback on fine layout adjustments. In contrast, for typesetting documents, typesetting systems that enable us to program object rendering and placement in a high-level manner are more effective. Although programming environments for high-level interactive typesetting are desirable for leveraging their advantages in slide creation, such environments are, unfortunately, not well developed. In this work, we present SATYSFI NOTEBOOK by extending the typesetting system SATYSFI, which is based on a functional programming language, to support incremental evaluation and by integrating it into the interactive programming environment JupyterLab. SATYSFI NOTEBOOK enables the incremental creation of slide decks while interactively typesetting and previewing slides represented as high-level program fragments. In this paper, we provide the design and implementation of SATYSFI NOTEBOOK, along with observations obtained during its development.