Same idea as Jupyter / Databricks: run one cell, keep state, run the next.
Tip: run cell 2, then cell 3. Change a value and re-run only that cell.