{ } Raw JSON

bundles / traitlets latest / traitlets / utils / importstring / import_item

function

traitlets.utils.importstring:import_item

source: /traitlets/utils/importstring.py :11

Signature

def   import_item ( name : str )  →  Any

Summary

Import and return bar given the string foo.bar.

Extended Summary

Calling bar = import_item("foo.bar") is the functional equivalent of executing the code from foo import bar.

Parameters

name : string

The fully qualified name of the module/package being imported.

Returns

mod : module object

The module that was imported.

Aliases

  • traitlets.import_item