1.6.210. numpy.pkgload¶
-
numpy.pkgload(*packages, **options)[source]¶ Load one or more packages into parent package top-level namespace.
This function is intended to shorten the need to import many subpackages, say of scipy, constantly with statements such as
import scipy.linalg, scipy.fftpack, scipy.etc...Instead, you can say:
import scipy scipy.pkgload(‘linalg’,’fftpack’,...)or
scipy.pkgload()to load all of them in one call.
If a name which doesn’t exist in scipy’s namespace is given, a warning is shown.
Parameters: *packages : arg-tuple
the names (one or more strings) of all the modules one wishes to load into the top-level namespace.
- verbose= : integer
verbosity level [default: -1]. verbose=-1 will suspend also warnings.
- force= : bool
when True, force reloading loaded packages [default: False].
- postpone= : bool
when True, don’t load packages [default: False]