MCPcopy
hub / github.com/deepnote/deepnote / convertToDeepnote

Function convertToDeepnote

packages/cli/src/commands/convert.ts:187–196  ·  view source on GitHub ↗
(
  absolutePath: string,
  inputFormat: SourceNotebookFormat,
  isDirectory: boolean,
  options: ConvertOptions
)

Source from the content-addressed store, hash-verified

185}
186
187async function convertToDeepnote(
188 absolutePath: string,
189 inputFormat: SourceNotebookFormat,
190 isDirectory: boolean,
191 options: ConvertOptions
192): Promise<ConvertResult> {
193 return isDirectory
194 ? convertDirectoryToDeepnote(absolutePath, inputFormat, options)
195 : convertSingleFileToDeepnote(absolutePath, inputFormat, options)
196}
197
198/** Converts one source notebook to a single-notebook `.deepnote` file. */
199async function convertSingleFileToDeepnote(

Callers 1

convertFileFunction · 0.85

Calls 2

Tested by

no test coverage detected