MCPcopy Create free account
hub / github.com/deepnote/deepnote / createDeepnoteFileSkeleton

Function createDeepnoteFileSkeleton

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

* Creates a base DeepnoteFile structure with empty notebooks. * This is a helper to reduce duplication in conversion functions.

(projectName: string, idGenerator: () => string, projectId?: string)

Source from the content-addressed store, hash-verified

373 * This is a helper to reduce duplication in conversion functions.
374 */
375function createDeepnoteFileSkeleton(projectName: string, idGenerator: () => string, projectId?: string): DeepnoteFile {
376 return {
377 metadata: {
378 createdAt: new Date().toISOString(),
379 },
380 project: {
381 id: projectId ?? idGenerator(),
382 integrations: [],
383 name: projectName,
384 notebooks: [],
385 settings: {},
386 },
387 version: '1.0.0',
388 }
389}
390
391/**
392 * Converts a single Marimo app object into a single-notebook Deepnote project file.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected