fix(view): run stateless documents and clear Execution output

No-session view Run All now runs the document and renders stdout into Execution; Clear outputs clears Execution output, plots and plan cards as well as cell outputs.
This commit is contained in:
cflmy committed 2026-10-18 12:51:13 +08:00
1 parent bff2f53e52
commit 4757b82edd
4 files changed
+48 -1

No files matched your search

+5
View File
@@ -189,6 +189,11 @@ fn handle(root: &ViewRoot, request: Request) -> Result<()> {
notebook_api::api_close(&root.root, body)
})
}
"/api/session/run_document" => {
return api_debug_post(request, |body| {
notebook_api::api_run_document(&root.root, body)
})
}
"/api/session/clear" => {
return api_debug_post(request, |body| {
notebook_api::api_clear(&root.root, body)