Skip to main content

response

Response classes for handling code execution results in Datalayer SDK.

class Response(execute_response: list[dict[str, typing.Any]])

Represents the response from code execution in a runtime.

Parameters

  • execute_response : list[dict[str, Any]]

    The response from the code execution.

__init__(execute_response: list[dict[str, typing.Any]])

Initialize a response object.

Parameters

  • execute_response : list[dict[str, Any]]

    The response from the code execution.

stdout

Get the standard output of the code execution.

Returns

  • str

    The standard output as a string.

stderr

Get the standard error of the code execution.

Returns

  • str

    The standard error as a string.