Lune

CHI2025Top-tier venue

Pagebreaks: Multi-Cell Scopes in Computational Notebooks

Eric Rawn, Sarah E. Chasins

2025Year
4Citations
1Top-tier citations

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.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 02ea2b7d-8c2e-4170-9230-8b7919341c33

Cited by top-tier papers1

Ask how each one uses it

Builds on15

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines