evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a module that programmatically creates, executes, and saves a notebook from structured steps using a chosen kernel.
outputPath with matching cell types and sources, bound to the specified kernel name; returns the saved path. @testallowErrors is true. @testoutputPath, returning an outcome summary listing each cell index, type, status, and outputs. @testexport type NotebookCellType = 'code' | 'markdown';
export interface NotebookStep {
type: NotebookCellType;
source: string;
}
export interface CellOutcome {
index: number;
type: NotebookCellType;
status: 'ok' | 'error';
outputs: string[];
error?: { name: string; message: string };
}
export interface NotebookRunOptions {
kernelName: string;
steps: NotebookStep[];
cwd?: string;
outputPath: string;
allowErrors?: boolean;
}
export interface NotebookRunResult {
path: string;
outcomes: CellOutcome[];
}
export async function runNotebookWorkflow(options: NotebookRunOptions): Promise<NotebookRunResult>;Notebook document creation and cell operations.
Kernel sessions and execution requests.