evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A utility for capturing, storing, and sharing JupyterLab workspace layouts.
id and layout data blocks. @testid in the payload when cloning. @test/lab/workspaces/<id> format so another user can open the saved layout directly. @testexport interface WorkspaceSnapshot {
id: string;
data: unknown;
path: string;
}
/**
* Fetch the current layout for the given workspace id and write it to a JSON file.
* Returns the snapshot metadata including the saved path.
*/
export function saveWorkspaceSnapshot(options: {
baseUrl: string;
token?: string;
workspaceId: string;
outputPath: string;
}): Promise<WorkspaceSnapshot>;
/**
* Read a previously saved snapshot file and apply it to the server under targetWorkspaceId (or the snapshot's id when omitted).
*/
export function restoreWorkspaceSnapshot(options: {
baseUrl: string;
token?: string;
snapshotPath: string;
targetWorkspaceId?: string;
}): Promise<void>;
/**
* Build a shareable URL that opens the workspace by id using the server base URL.
*/
export function buildWorkspaceUrl(baseUrl: string, workspaceId: string): string;Provides workspace REST endpoints and base URL/token helpers needed to retrieve and apply layouts.