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

Function convertBlocksToMarimoApp

packages/convert/src/deepnote-to-marimo.ts:24–33  ·  view source on GitHub ↗
(blocks: DeepnoteBlock[], notebookName: string)

Source from the content-addressed store, hash-verified

22 * @returns A MarimoApp object
23 */
24export function convertBlocksToMarimoApp(blocks: DeepnoteBlock[], notebookName: string): MarimoApp {
25 const cells = blocks.map(block => convertBlockToCell(block))
26
27 return {
28 generatedWith: MARIMO_VERSION,
29 width: 'medium',
30 title: notebookName,
31 cells,
32 }
33}
34
35/**
36 * Converts a Deepnote project into Marimo app objects.

Callers 2

Calls 1

convertBlockToCellFunction · 0.70

Tested by

no test coverage detected