nvalchemi.hooks.DynamicsRichLayout#

class nvalchemi.hooks.DynamicsRichLayout[source]#

Rich dashboard layout for dynamics workflows.

default_preview_batch_count()[source]#

Return no batch metadata for dynamics previews.

Return type:

None

default_preview_epoch()[source]#

Return no epoch metadata for dynamics previews.

Return type:

None

default_preview_history()[source]#

Return representative dynamics metrics for preview rendering.

Return type:

Mapping[str, Sequence[float]]

default_preview_stage()[source]#

Return the dynamics hook stage label used by static previews.

Return type:

str

render(snapshot, history, *, title, precision, max_scalars, plot_keys, max_plots, plot_height)[source]#

Build a dynamics-specific Rich dashboard.

Parameters:
  • snapshot (ScalarSnapshot | None) – Latest scalar snapshot, or None before the first report.

  • history (RichMetricHistory) – Retained scalar history keyed by metric name.

  • title (str) – Dashboard title.

  • precision (int) – Significant digits used for scalar values.

  • max_scalars (int | None) – Maximum number of observable rows.

  • plot_keys (Sequence[str] | None) – Explicit plot key ordering override.

  • max_plots (int) – Maximum number of plot panels.

  • plot_height (int) – Plot height in terminal rows.

Returns:

Renderable Rich layout with dynamics observables, status, and traces.

Return type:

Layout