Expand description
WASM Notebook Runtime with Reactive Cell Execution.
Implements GitHub issue #6 - Notebook runtime for Ruchy integration.
§Design
- Dependency-aware cell execution order (topological sort)
- Automatic re-execution on upstream changes
- Cell state persistence
§Example
ⓘ
let mut notebook = NotebookRuntime::new();
// Add cells
let a = notebook.add_cell("let x = 10");
let b = notebook.add_cell("let y = x * 2"); // depends on a
let c = notebook.add_cell("x + y"); // depends on a, b
// Execute all cells in dependency order
notebook.execute_all();
// Update cell a - cells b and c re-execute automatically
notebook.update_cell(a, "let x = 20");Structs§
- Cell
- A single notebook cell with source code and execution state.
- Cell
Graph - Directed acyclic graph tracking cell dependencies.
- Cell
Output - Output from a cell execution.
- Notebook
Runtime - Notebook runtime with reactive cell execution.
Type Aliases§
- CellId
- Unique identifier for a notebook cell.