Execute code directly on a Datalayer runtime using Jupyter kernel protocol.
This function:
The runtime to execute code on (must have ingress and token)
Python code to execute
Promise resolving to execution result with outputs
const runtime = await strategy.tryConnect({ runtimesTreeProvider });const result = await executeOnRuntime(runtime, "print('hello')");if (result.success) { console.log("Outputs:", result.outputs);} Copy
const runtime = await strategy.tryConnect({ runtimesTreeProvider });const result = await executeOnRuntime(runtime, "print('hello')");if (result.success) { console.log("Outputs:", result.outputs);}
Execute code directly on a Datalayer runtime using Jupyter kernel protocol.
This function: