numpy_include#
- scikitplot.cython.numpy_include()[source]#
Return the NumPy C-API include directory, or
Noneif not installed.- Returns:
- pathlib.Path or None
Absolute path to
numpy/core/include, orNonewhen NumPy is not importable.
- Return type:
Path | None
Notes
Scenario 3 / 5 user note: this is equivalent to passing
numpy_support=Trueto the public API, but gives you an explicit path you can inspect or pass to a custom compiler.Examples
>>> p = numpy_include() >>> p is None or p.is_dir() True