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

Function convertDeepnoteToMarimoApps

packages/convert/src/deepnote-to-marimo.ts:43–52  ·  view source on GitHub ↗
(deepnoteFile: DeepnoteFile)

Source from the content-addressed store, hash-verified

41 * @returns Array of objects containing filename and corresponding Marimo app
42 */
43export function convertDeepnoteToMarimoApps(deepnoteFile: DeepnoteFile): Array<{ filename: string; app: MarimoApp }> {
44 return deepnoteFile.project.notebooks.map(notebook => {
45 const app = convertBlocksToMarimoApp(notebook.blocks, notebook.name)
46
47 return {
48 filename: `${sanitizeFileName(notebook.name)}.py`,
49 app,
50 }
51 })
52}
53
54/**
55 * Serializes a Marimo app to a Python file string.

Calls 2

sanitizeFileNameFunction · 0.90
convertBlocksToMarimoAppFunction · 0.85

Tested by

no test coverage detected