lazy_module
This function is used to lazily import modules. It is used in the following way: .. code-block:: python from flytekit.lazy_import import lazy_module sklearn = lazy_module("sklearn") sklearn.svm.SVC() :param Text fullname: The full name of the module to import
def lazy_module(fullname): ...
This function is used to lazily import modules.
Parameters
| Name | Type | Description |
|---|---|---|
| fullname | str | The full name of the module to import |
Returns
| Type | Description |
|---|---|
types.ModuleType | The lazily loaded module instance or a placeholder lazy module object if the target module is not found. |