pyphi.display.mixin.Displayable#

class pyphi.display.mixin.Displayable[source]#

Bases: object

Provides repr / str / HTML from a subclass _describe() hook.

Verbosity policy (read from config.infrastructure.repr_verbosity):

  • LOW (0): the one-line compact form only.

  • MEDIUM (1): the full card minus expensive embedded TPM grids (e.g. a Substrate’s TPM, a System’s conditioned cause/effect TPMs — which require computing marginals).

  • HIGH (2, the default): everything in the standard card.

  • FULL (3): the card plus all mathematical content (e.g. the cut-matrix grid for an RIA/MICE partition).

  • PROVENANCE (4): FULL plus a provenance section recording how, when, and by what code the result was computed.

_describe(verbosity) honors this: it returns a compact-only Description at LOW (so no heavy sections are built) and gates embedded TPM grids behind HIGH.