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

Function saveDeepnoteFile

packages/mcp/src/utils.ts:13–17  ·  view source on GitHub ↗
(filePath: string, file: DeepnoteFile)

Source from the content-addressed store, hash-verified

11}
12
13export async function saveDeepnoteFile(filePath: string, file: DeepnoteFile): Promise<void> {
14 const absolutePath = path.resolve(filePath)
15 const content = serializeDeepnoteFile(file)
16 await fs.writeFile(absolutePath, content, 'utf-8')
17}
18
19/**
20 * Format output based on compact mode - omit null/empty, use single-line JSON

Callers 6

handleCreateFunction · 0.85
handleAddBlockFunction · 0.85
handleEditBlockFunction · 0.85
handleRemoveBlockFunction · 0.85
handleReorderBlocksFunction · 0.85
handleAddNotebookFunction · 0.85

Calls 1

serializeDeepnoteFileFunction · 0.90

Tested by

no test coverage detected