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

Function loadDeepnoteFile

packages/mcp/src/utils.ts:7–11  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

5import { PYTHON_BUILTINS } from '@deepnote/reactivity'
6
7export async function loadDeepnoteFile(filePath: string): Promise<DeepnoteFile> {
8 const absolutePath = path.resolve(filePath)
9 const content = await fs.readFile(absolutePath, 'utf-8')
10 return deserializeDeepnoteFile(content)
11}
12
13export async function saveDeepnoteFile(filePath: string, file: DeepnoteFile): Promise<void> {
14 const absolutePath = path.resolve(filePath)

Callers 9

writing.test.tsFile · 0.90
handleAddBlockFunction · 0.50
handleEditBlockFunction · 0.50
handleRemoveBlockFunction · 0.50
handleReorderBlocksFunction · 0.50
handleAddNotebookFunction · 0.50
handleReadFunction · 0.50
handleCatFunction · 0.50
handleDiffFunction · 0.50

Calls 1

deserializeDeepnoteFileFunction · 0.90

Tested by

no test coverage detected