This scaffold uses the active editor (markdown) as a proxy for a notebook. In a full implementation, adopt VS Code Notebook API and ipynb editing for richer UX.
Calls backend stateless endpoints with metadata.stateless=true and metadata.enable_execution=false so code runs locally.