MCPcopy Index your code
hub / github.com/deepnote/deepnote / computeCodeHash

Function computeCodeHash

packages/convert/src/marimo-to-deepnote.ts:18–21  ·  view source on GitHub ↗

* Computes a code hash for a cell's content. * This matches how Marimo computes code_hash for the session cache. * * @param content - The cell's code content * @returns An MD5 hash string (32 hex chars)

(content: string)

Source from the content-addressed store, hash-verified

16 * @returns An MD5 hash string (32 hex chars)
17 */
18function computeCodeHash(content: string): string {
19 // Marimo uses MD5 for code_hash in session cache
20 return createHash('md5').update(content, 'utf-8').digest('hex')
21}
22
23/**
24 * Splits a string on commas that are at the top level (not inside parentheses, brackets, braces, or string literals).

Callers 1

convertMarimoAppToBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected