Run Code In Jupyter
POST/run_jupyter
Run Code In Jupyter
Request
- application/json
Body
required
cells string[]required
list of code blocks to run in jupyter notebook
cell_timeout Cell Timeout (number)
max run time for each of the cells
Default value:
0
total_timeout Total Timeout (number)
max run time for all the cells
Default value:
45
kernel Kernel (string)
Possible values: [python3
]
Default value:
python3
files
object
a dict from file path to base64 encoded file content
property name* string
fetch_files string[]
a list of file paths to fetch after code execution
Default value:
[]
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- CommandRunResult
- MOD1
- MOD1
- MOD1
- MOD1
Array [
]
- MOD1
status RunStatus (string)required
Possible values: [Success
, Failed
, SandboxError
]
message Message (string)required
driver
object
anyOf
status CommandRunStatus (string)required
Possible values: [Finished
, Error
, TimeLimitExceeded
]
execution_time
object
anyOf
number
return_code
object
anyOf
integer
stdout
object
anyOf
string
stderr
object
anyOf
string
cells
object[]
stdout Stdout (string)required
stderr Stderr (string)required
display object[]required
error object[]required
executor_pod_name
object
anyOf
string
files
object
property name* string
{
"status": "Success",
"message": "string",
"driver": {},
"cells": [
{
"stdout": "string",
"stderr": "string",
"display": [
{}
],
"error": [
{}
]
}
],
"executor_pod_name": "string",
"files": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...