Time travel: replay and fork
Notebook· 08.04· 90–120 min· Lesson 67 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Find the checkpoint you want in a thread's history (by
next,step,source). - Replay from a checkpoint: re-run everything after it, and know what is and isn't repeated.
- Fork: change state at a past checkpoint with
update_stateand run a different branch, keeping the original. - Trace branches: compare them in code and tag them so they're findable in LangSmith.
Before you start
Lessons 08.01 (checkpoints) and 08.03 (interrupts).
Python in this lesson
Python guideNew hereSorting by a key (key=…)Async comprehensions
