Skip to content

@sqlrooms/python / PythonRuntimeAdapter

Type Alias: PythonRuntimeAdapter ​

PythonRuntimeAdapter = object

Runtime adapter for browser-local or external Python execution.

Properties ​

id ​

id: PythonRuntimeAdapterKind

Methods ​

status() ​

status(): Promise<{ state: "idle" | "loading" | "ready" | "error"; message?: string; }>

Returns ​

Promise<{ state: "idle" | "loading" | "ready" | "error"; message?: string; }>


execute() ​

execute(request, host): Promise<PythonExecutionResult>

Parameters ​

ParameterType
requestPythonExecutionRequest
hostPythonRuntimeHost

Returns ​

Promise<PythonExecutionResult>


interrupt()? ​

optional interrupt(executionId): Promise<void>

Parameters ​

ParameterType
executionIdstring

Returns ​

Promise<void>


reset()? ​

optional reset(sessionId): Promise<void>

Parameters ​

ParameterType
sessionIdstring

Returns ​

Promise<void>


dispose()? ​

optional dispose(): Promise<void>

Returns ​

Promise<void>