@sqlrooms/python / PythonRuntimeAdapter
Type Alias: PythonRuntimeAdapter
PythonRuntimeAdapter =
object
Runtime adapter for browser-local or external Python execution.
Properties
id
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
| Parameter | Type |
|---|---|
request | PythonExecutionRequest |
host | PythonRuntimeHost |
Returns
Promise<PythonExecutionResult>
interrupt()?
optionalinterrupt(executionId):Promise<void>
Parameters
| Parameter | Type |
|---|---|
executionId | string |
Returns
Promise<void>
reset()?
optionalreset(sessionId):Promise<void>
Parameters
| Parameter | Type |
|---|---|
sessionId | string |
Returns
Promise<void>
dispose()?
optionaldispose():Promise<void>
Returns
Promise<void>
