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

Function roundtripDeepnoteNotebooks

packages/convert/src/roundtrip.test.ts:18–23  ·  view source on GitHub ↗

* Reassembles a Deepnote project's notebooks from per-notebook Jupyter inputs. * Conversion is now per-notebook, so each Jupyter notebook is converted on its * own and its single resulting notebook is collected back into an array.

(
  jupyterNotebooks: ReturnType<typeof convertDeepnoteToJupyterNotebooks>,
  projectName: string
)

Source from the content-addressed store, hash-verified

16 * own and its single resulting notebook is collected back into an array.
17 */
18function roundtripDeepnoteNotebooks(
19 jupyterNotebooks: ReturnType<typeof convertDeepnoteToJupyterNotebooks>,
20 projectName: string
21) {
22 return jupyterNotebooks.map(nb => convertJupyterNotebookToDeepnote(nb, { projectName }).project.notebooks[0])
23}
24
25describe('Deepnote → Jupyter → Deepnote roundtrip', () => {
26 it('preserves notebook content', async () => {

Callers 1

roundtrip.test.tsFile · 0.85

Calls 1

Tested by

no test coverage detected