numpy_include#

scikitplot.cython.numpy_include()[source]#

Return the NumPy C-API include directory, or None if not installed.

Returns:
pathlib.Path or None

Absolute path to numpy/core/include, or None when NumPy is not importable.

Return type:

Path | None

Notes

Scenario 3 / 5 user note: this is equivalent to passing numpy_support=True to 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