Code Interpreter / Execution
Interface: Execution
Represents the result of a cell execution.
Properties
error?
optionalerror?:ExecutionError
An Error object if an error occurred, null otherwise.
executionCount?
optionalexecutionCount?:number
Execution count of the cell.
logs
logs:
Logs
Logs printed to stdout and stderr during execution.
results
results:
Result[] =[]
List of result of the cell (interactively interpreted last line), display calls (e.g. matplotlib plots).
Accessors
text
Get Signature
get text():
string|undefined
Returns the text representation of the main result of the cell.
Returns
string | undefined
Methods
toJSON()
toJSON():
object
Returns the serializable representation of the execution result.
Returns
object
error
error:
ExecutionError|undefined
logs
logs:
Logs
results
results:
Result[]