MCPcopy Create free account
hub / github.com/deepnote/deepnote / readMarimoSessionCache

Function readMarimoSessionCache

packages/convert/src/snapshot/marimo-outputs.ts:63–72  ·  view source on GitHub ↗
(sessionPath: string)

Source from the content-addressed store, hash-verified

61 * @returns The parsed session cache, or null if reading fails
62 */
63export async function readMarimoSessionCache(sessionPath: string): Promise<MarimoSessionCache | null> {
64 try {
65 const content = await fs.readFile(sessionPath, 'utf-8')
66 return JSON.parse(content) as MarimoSessionCache
67 } catch (_error) {
68 // Debug logging (uncomment for troubleshooting):
69 // console.debug('Failed to read Marimo session cache:', sessionPath, _error)
70 return null
71 }
72}
73
74/**
75 * Converts a Marimo session output to Jupyter/Deepnote output format.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected