Get the cache file for a given path. For example, if the path is `foo/bar/baz.py`, the cache file is `foo/bar/__marimo__/session/baz.py.json`.
(path: Path)
| 400 | |
| 401 | |
| 402 | def get_session_cache_file(path: Path) -> Path: |
| 403 | """Get the cache file for a given path. |
| 404 | |
| 405 | For example, if the path is `foo/bar/baz.py`, the cache file is |
| 406 | `foo/bar/__marimo__/session/baz.py.json`. |
| 407 | """ |
| 408 | from marimo._utils.paths import notebook_output_dir |
| 409 | |
| 410 | return notebook_output_dir(path) / "session" / f"{path.name}.json" |
| 411 | |
| 412 | |
| 413 | def _hash_code(code: str | None) -> str | None: |
searching dependent graphs…