manager
Kernel manager for Datalayer runtimes.
class RuntimeManager(run_url: 'str', token: 'str', username: 'str', **kwargs: 'dict[str, Any]')
Manages a single Runtime.
Parameters
-
run_url : str
The runtime URL.
-
token : str
Authentication token.
-
username : str
Username for the runtime.
-
**kwargs : dict[str, Any]
Additional keyword arguments.
__init__(run_url: 'str', token: 'str', username: 'str', **kwargs: 'dict[str, Any]')
Initialize the gateway Runtime manager.
Parameters
-
run_url : str
The runtime URL.
-
token : str
Authentication token.
-
username : str
Username for the runtime.
-
**kwargs : dict[str, Any]
Additional keyword arguments.
kernel_url
Get the kernel URL.
Returns
-
str or None
The kernel URL if available, None otherwise.
start_kernel(name: 'str' = '', path: 'str | None' = None, timeout: 'float' = 10) -> 'dict[str, Any] | None'
Start a kernel on Datalayer cloud.
Parameters
-
name : str
Runtime name.
-
path : str
[optional] API path from root to the cwd of the kernel.
-
timeout : float
Request timeout.
Returns
-
dict[str, Any] | None
The kernel model.