capability_snapshot#
- scikitplot.corpus.capability_snapshot(extra_distributions=(), *, load=False)[source]#
Return a read-only snapshot of the runtime corpus capabilities.
- Parameters:
- extra_distributionsiterable of str, optional
Additional distribution names to record beyond the built-in set.
- loadbool, optional
False(default) imports no backend: one whose probe would load it (Annoy, which loads scikit-learn and SciPy) reports"unknown"/"not_loaded"unless this process already loaded it.Trueloads it to tell"available"from"broken"(F-50).
- Returns:
- dict
A mapping with keys:
pythonstrPython version (e.g.
"3.11.6").implementationstrInterpreter implementation (e.g.
"CPython").platformstrPlatform identifier from
platform.platform.ann_backendsdict{name: {"status", "reason_code", "available", "version", "aliases"}}for every registered ANN backend;statusis aCapabilityStatusvalue andavailableis derived from it.distributionsdict{distribution: version | None}for the relevant optional packages (plus any extra_distributions).
- Parameters:
- Return type:
Notes
Purely observational — it acquires no locks, mutates no state, and never raises for a missing optional component (absent components report
None/False), so it is safe to embed in a run/build manifest.