@datalayer/core
Version:
**Datalayer Core**
26 lines (25 loc) • 748 B
TypeScript
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 {};