Skip to main content

Run Code In Jupyter

POST 

/run_jupyter

Run Code In Jupyter

Request

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

Successful Response

Schema

    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[]

  • Array [

  • 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
Loading...