component_catalog#
- scikitplot.corpus.component_catalog()[source]#
Build a snapshot of every registered component.
- Returns:
- ComponentCatalog
- Return type:
Notes
Never raises. A registry that cannot be imported contributes nothing rather than failing the whole catalog, so a partially-installed environment can still ask what it has – but it is recorded as broken rather than as empty, and
ComponentCatalog.discovery_failuresreturns it. A source that could not be consulted is not an answer about components.Examples
>>> catalog = component_catalog() >>> "index" in catalog.categories() True