Execute code in a Jupyter kernel
Code
Execute code in a Jupyter kernel
Sends code to the in-container Jupyter server for execution.
Returns results as an SSE stream of line-delimited JSON events.
If both context_id and language are provided, context_id takes precedence.
POST
Execute code in a Jupyter kernel
Authorizations
API key passed as Bearer token
Path Parameters
Sandbox ID (e.g. sb_a1b2c3d4)
Body
application/json
Source code to execute
Kernel language used when context_id is omitted.
The server selects or creates the default context for this language.
Kernel context to use.
When present, this takes precedence over language.
Environment variables for this execution
Execution timeout in seconds
Response
SSE stream of execution output events