MCPcopy
hub / github.com/marimo-team/marimo / get_session_cache_file

Function get_session_cache_file

marimo/_session/state/serialize.py:402–410  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

400
401
402def 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
413def _hash_code(code: str | None) -> str | None:

Calls 1

notebook_output_dirFunction · 0.90

Used in the wild real call sites across dependent graphs

searching dependent graphs…