Skip to main content

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​

NameTypeDescription
fullnamestrThe full name of the module to import

Returns​

TypeDescription
types.ModuleTypeThe lazily loaded module instance or a placeholder lazy module object if the target module is not found.