import_extension#
- scikitplot.cython.import_extension(*, name, path, key=None, build_dir=None)[source]#
Import an extension module from an explicit artifact path.
- Parameters:
- namestr
Module name used at compilation time.
- pathpathlib.Path
Compiled extension artifact path.
- keystr or None, default=None
Cache key to attach to the loaded module.
- build_dirpathlib.Path or None, default=None
Cache entry directory to attach to the loaded module.
- Returns:
- types.ModuleType
Imported module.
- Raises:
- ImportError
If the module cannot be loaded.
- Parameters:
- Return type: