Documentation
¶
Rendered for js/wasm
Overview ¶
Command playground is the playground's WebAssembly core. It runs in a Web Worker (web/worker.js), defines two functions, then calls playgroundReady() and waits:
- playgroundRun(markdown) runs a notebook and returns what each code cell did, as JSON ([]engine.Result);
- playgroundCells(markdown) returns the notebook's cells, as JSON ([]engine.Cell), for a notebook the visitor opens.
The page calls them once per run with the whole notebook: one string in, one string out, never a call per cell or per widget.
Click to show internal directories.
Click to hide internal directories.