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
- How do I make AI-generated summaries in a dashboard or table easy to skim?
- How do I get an LLM to write consistent one-line titles or summaries for many items?
- Is there a better way to iterate on prompts when an LLM pipeline runs over many documents?
- Why is it so hard to find a good dataset for my project?
- My RAG answers are wrong. How do I tell whether retrieval or generation is the problem?
- How do I find which cells in a messy Jupyter notebook actually produced this plot or model, so I can clean it up?