Skip to main content

shell

WebSocket terminal interactive shell for Datalayer Core.

class WSTerminalInteractiveShell(**kwargs)

WebSocket terminal interactive shell extending ZMQTerminalInteractiveShell.

manager

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

client

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

handle_external_iopub(loop: Optional[Any] = None) -> None

Handle external IOPub messages asynchronously.

Parameters

  • loop : Optional[Any]

    The event loop to use for handling messages.

show_banner() -> None

Display the terminal banner.

check_complete(code: str) -> tuple[bool, str]

Check if the code is complete for execution.

Parameters

  • code : str

    The code to check for completeness.

Returns

  • tuple[bool, str]

    A tuple containing completion status and indent string.