fix(view): restore per-cell kernel switch and Clean

Code cards again show a kernel selector and a Clean button. Clean calls /api/session/cell/clear for live sessions and clears local output in static snapshots, without restarting kernels.
This commit is contained in:
cflmy committed 2026-10-18 13:27:15 +08:00
1 parent 05d48f68a4
commit 15362cb048
6 files changed
+109 -13

No files matched your search

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