UNPKG

@datalayer/core

Version:

[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)

26 lines (25 loc) 749 B
import { Kernel } from '@jupyterlab/services'; type Props = { connection: Kernel.IKernelConnection; metadata: { filename: string; [key: string]: string; }; onUploadProgress?: (bytesUploaded: number, bytesTotal: number) => void; }; /** * Snapshot a runtime through the frontend and upload it to the cloud. * * Note: You should use this only for browser runtimes. */ export declare function createRuntimeSnapshot(props: Props): Promise<void>; /** * Load a snapshot within a browser kernel. * * Note: You should use this only for browser kernels. */ export declare function loadBrowserRuntimeSnapshot({ connection, id, }: { connection: Kernel.IKernelConnection; id: string; }): Promise<void>; export {};