(deepnoteFile: DeepnoteFile)
| 41 | * @returns Array of objects containing filename and corresponding Marimo app |
| 42 | */ |
| 43 | export 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. |
no test coverage detected