The result of an ExecuteCode call, returned as the terminal structuredContent of the response stream.
| JSON representation |
|---|
{ "executionId": string, "session": string, "executionCount": integer, "stdout": string, "stderr": string, "result": string, "executionError": { object ( |
| Fields | |
|---|---|
executionId |
The execution identifier this result is for, echoed from the request. Empty when the request supplied no |
session |
The session the execution ran in. Format: |
executionCount |
The Jupyter |
stdout |
Aggregated stdout across the execution. |
stderr |
Aggregated stderr across the execution. |
result |
The |
executionError |
Populated when the execution raised. Mutually exclusive with a successful completion. |
outputTruncated |
Whether the runtime truncated buffered output (size or line caps hit). When true, |
richOutputsDropped |
Deprecated: use |
richOutputs[] |
The rich (non-text) outputs captured for this execution, one entry per rich output in emission order, reported from the runtime's actual write ledger (the capture preamble records what it wrote, including drops) rather than reconstructed from a naming convention. Each entry carries its MIME representations and whether it was written (with a reason when not). |
ExecuteCodeResult.Error
A Python exception raised during execution.
| JSON representation |
|---|
{ "name": string, "value": string, "traceback": [ string ] } |
| Fields | |
|---|---|
name |
The exception class name, e.g. "NameError". |
value |
The exception message, e.g. "name 'foo' is not defined". |
traceback[] |
The formatted traceback, one frame per entry. |
ExecuteCodeResult.RichOutput
A single rich (non-text) output the runtime captured for this execution.
| JSON representation |
|---|
{ "index": integer, "mimeTypes": [ string ], "sizeBytes": string, // Union field |
| Fields | |
|---|---|
index |
0-based index of this output among the execution's rich outputs, in emission order. Dense and monotonic: a dropped output still occupies its index, so later indices never shift. This is the stable identifier for a dropped output, which has no |
mimeTypes[] |
The rich MIME representations this output carries, in the kernel's emission order, e.g. ["image/png", "text/html"]. These are alternative renderings of the SAME output; a client picks the one it can render and reads it from the bundle at |
sizeBytes |
Size in bytes of the nbformat bundle file at |
Union field output_result. Whether this output was written (file_path) or dropped (error_info). output_result can be only one of the following: |
|
filePath |
Absolute |
errorInfo |
Why the output was not written, set iff it was dropped. |