Pagebreaks: Multi-Cell Scopes in Computational Notebooks
Eric Rawn, Sarah E. Chasins
Abstract
Figure 1: A Pagebreak is a language construct for adding a scope around multiple Jupyter Notebook cells. Left: A notebook using Pagebreaks. A Variables defined within the indented cells can only be used within a defined portion of the notebook. Unlike defining the same variables inside a function, the Pagebreak does not interfere with key exploratory interactions, such as B: interleaving code and its output, C: using cells as impromptu versions, and D: iteratively composing programs with single-line cells. E: Only variables exported at the bottom of a Pagebreak are available for other cells. For example mean_ratings is available in the bottom Pagebreak, but ratings_by_title is not. Right: In contrast, functions provide scopes at the cost of these exploratory interactions. F: Functions prevent iterative composition or using cells as impromptu versions inside a function body. G: Functions prevent interleaving code and output; instead all printed output from a function appears together at the call site, not interleaved with the function body. Example adapted from [30].
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 02ea2b7d-8c2e-4170-9230-8b7919341c33Cited by top-tier papers1
Ask how each one uses itBuilds on15
- 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
- B2: Bridging Code and Interactive Visualization in Computational NotebooksYifan Wu, Joseph M. Hellerstein, Arvind SatyanarayanUIST 2020 · 71 citations
- Assessing and Restoring Reproducibility of Jupyter NotebooksJiawei Wang, Tzu-yang Kuo, Li Li, Andreas ZellerASE 2020 · 68 citations
- mage: Fluid Moves Between Code and Graphical Work in Computational NotebooksMary Beth Kery, Donghao Ren, Fred Hohman, Dominik Moritz et al.UIST 2020 · 66 citations
- Fork It: Supporting Stateful Alternatives in Computational NotebooksNathaniel Weinman, Steven Mark Drucker, Titus Barik, Robert DeLineCHI 2021 · 55 citations
Related papers
- Enhancing Computational Notebooks with Code+Data Space VersioningHanxi Fang, Supawit Chockchowwat, Hari Sundaram, Yongjoo ParkCHI 2025 · 6 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
- Multiverse Notebook: Shifting Data Scientists to Time TravelersShigeyuki Sato, Tomoki NakamaruOOPSLA 2024 · 3 citations
- InterLink: Linking Text with Code and Output in Computational NotebooksYanna Lin, Leni Yang, Haotian Li, Huamin Qu et al.CHI 2025 · 10 citations
- ToonNote: Improving Communication in Computational Notebooks Using Interactive Data ComicsDaye Kang, Tony Ho, Nicolai Marquardt, Bilge Mutlu et al.CHI 2021 · 42 citations
