MCPcopy Create free account
hub / github.com/ipython/ipython / load_module

Method load_module

IPython/utils/shimmodule.py:45–50  ·  view source on GitHub ↗

Import the mirrored module, and insert it into sys.modules

(self, fullname)

Source from the content-addressed store, hash-verified

43 return self
44
45 def load_module(self, fullname):
46 """Import the mirrored module, and insert it into sys.modules"""
47 mirror_name = self._mirror_name(fullname)
48 mod = import_item(mirror_name)
49 sys.modules[fullname] = mod
50 return mod
51
52
53class ShimModule(types.ModuleType):

Callers 2

import_submoduleFunction · 0.45
deep_reload_hookFunction · 0.45

Calls 2

_mirror_nameMethod · 0.95
import_itemFunction · 0.85

Tested by

no test coverage detected