When I change an earlier Jupyter cell, how do I know which later cells to rerun?

Compute a forward slice: the cells that read anything the changed cell wrote. Reactive kernels such as ipyflow, and notebooks such as marimo, do this for you. In nbslicer, we compute forward slices from dependencies seen at run time; on 374 real notebook sessions they were on average 54% smaller than a static slicer's, so fewer cells need to rerun.

Sources: Bolt-on, Compact, and Rapid Program Slicing for Notebooks (VLDB 2023)

Guide: Interfaces for Data Work with LLMs

More questions on this topic

All questions about using AI for data and knowledge work