pyphi.display.description#

Declarative, backend-independent description of how to display a result.

A result type’s _describe() returns a Description; a renderer turns it into ASCII or HTML. This is the single source of truth for what to show.

Functions

card_label_width(description)

The widest key/value label in a card, in visible characters.

system_phi_label(config)

The label for a system irreducibility value under config's formalism.

Classes

Description(title[, subtitle, sections, ...])

The full description of a displayable object.

Inline(text[, html])

A pre-formatted fragment owned by the source type.

Nested(description)

A child result rendered compactly (one line), never as a recursive box.

Row(label, value[, extra, tone])

One aligned key/value line with optional trailing extra fields.

Section([label, rows, body, tone])

A named group rendered with a rule divider.

Table(headers, rows[, overflow, grid, ...])

A tabular list (distinctions, relations, account links).