You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / IPython / utils / importstring / import_item

function

IPython.utils.importstring:import_item

source: /IPython/utils/importstring.py :12

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

  • IPython.paths.import_item