probe_backend#
- scikitplot.corpus.probe_backend(cls)[source]#
Classify one backend’s availability.
- Parameters:
- clstype
A backend class exposing
is_available().
- Returns:
- tuple of (CapabilityStatus, str or None)
The status and a stable machine-readable reason code. The reason is
Nonewhen the status isAVAILABLE.
- Parameters:
cls (Any)
- Return type:
tuple[CapabilityStatus, str | None]
Notes
Developer. The distinction rests on how the probe answers: returning
Falsemeans the backend knows it is not installed, whereas raising means it is installed enough to try and failed – which isBROKEN. Review disproof D-13 confirmed the probes themselves are correctly fail-safe; the defect was that both outcomes collapsed to one boolean.