(blocks: DeepnoteBlock[], notebookName: string)
| 22 | * @returns A MarimoApp object |
| 23 | */ |
| 24 | export 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. |
no test coverage detected