Skip to content

display

display

In-place status line for a remote NDIF job, in a terminal or a notebook.

A remote job moves through a lifecycle (RECEIVED -> QUEUED -> ... -> RUNNING -> COMPLETED/ERROR); StatusDisplay renders that progress as a single color-coded line that updates in place -- a spinner while a stage is active, the final icon when it ends. The same line is built with ANSI escapes for a TTY and re-emitted as HTML for a notebook cell, so one renderer serves both.

StatusDisplay

StatusDisplay(enabled: bool = True, verbose: bool = False)

In-place, color-coded status line for a remote job (terminal or notebook).

Active states animate a spinner (advanced by refresh between messages); terminal states end the line. LOG messages print on their own line and don't replace the current lifecycle status.

enabled instance-attribute

enabled = enabled

verbose instance-attribute

verbose = verbose

color instance-attribute

color = _supports_color()

notebook instance-attribute

notebook = _in_notebook()

job_start instance-attribute

job_start: Optional[float] = None

status_start instance-attribute

status_start: Optional[float] = None

response instance-attribute

response: Optional[ResponseModel] = None

spinner instance-attribute

spinner = 0

update

update(response: ResponseModel) -> None

refresh

refresh() -> None