get_template_path#

scikitplot.cython.get_template_path(template_id, *, kind=None)[source]#

Resolve a template ID to an on-disk path.

Parameters:
template_idstr

Template ID. Supported forms: - "category/name" (no extension) - "category/name.pyx" or "category/name.py" - "name" (no category): allowed only if it resolves uniquely.

kind{‘cython’, ‘python’} or None, default=None

If provided, constrains resolution to that kind. If None, kind is inferred from an explicit extension or by strict unique matching.

Returns:
pathlib.Path

Template file path.

Raises:
FileNotFoundError

If no template matches.

ValueError

If resolution is ambiguous or kind is invalid.

Parameters:
  • template_id (str)

  • kind (str | None)

Return type:

Path