def load_trajectory(self, path: Path, title: str, overview_stats: dict, *, gold_patch: str | None = None):
        """Load a new trajectory and update the viewer."""
        print("Loading", path)
        self.trajectory = json.loads(path.read_text())
        self.title = title
        self.gold_patch = gold_patch
        self.overview_stats = overview_stats
        self.scroll_top()
        self.i_step = -1
        self.update_content()
Load a new trajectory and update the viewer.
sweagent/run/inspector_cli.py