(
*,
notebook_path: str | Path,
snapshot: NotebookSessionV1,
)
| 63 | |
| 64 | |
| 65 | def write_session_snapshot( |
| 66 | *, |
| 67 | notebook_path: str | Path, |
| 68 | snapshot: NotebookSessionV1, |
| 69 | ) -> Path: |
| 70 | output = get_session_cache_file(Path(notebook_path)) |
| 71 | maybe_make_dirs(output) |
| 72 | output.write_text(json.dumps(snapshot, indent=2), encoding="utf-8") |
| 73 | return output |
| 74 | |
| 75 | |
| 76 | def persist_session_view_to_cache( |
no test coverage detected
searching dependent graphs…