evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A helper that opens a scratch code console tied to an existing notebook kernel, routes code into it in order, and keeps a simple execution log.
export interface LinkRequest {
notebookId: string;
initialCode?: string;
}
export interface ConsoleRunResult {
promptNumber: number;
outputs: string[];
}
export interface LinkedConsoleController {
runInConsole(code: string): Promise<ConsoleRunResult>;
getPromptHistory(count?: number): ConsoleRunResult[];
dispose(): Promise<void>;
isDisposed(): boolean;
}
export async function linkNotebookConsole(request: LinkRequest): Promise<LinkedConsoleController>;Requires a package that provides kernel-backed code consoles, notebook session contexts, and workspace layout management. @satisfied-by