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

Method post_execute_hook

IPython/extensions/autoreload.py:533–542  ·  view source on GitHub ↗

Cache the modification times of any modules imported in this execution

(self)

Source from the content-addressed store, hash-verified

531 pass
532
533 def post_execute_hook(self):
534 """Cache the modification times of any modules imported in this execution
535 """
536 newly_loaded_modules = set(sys.modules) - self.loaded_modules
537 for modname in newly_loaded_modules:
538 _, pymtime = self._reloader.filename_and_mtime(sys.modules[modname])
539 if pymtime is not None:
540 self._reloader.modules_mtimes[modname] = pymtime
541
542 self.loaded_modules.update(newly_loaded_modules)
543
544
545def load_ipython_extension(ip):

Callers 2

run_codeMethod · 0.80
magic_aimportMethod · 0.80

Calls 2

filename_and_mtimeMethod · 0.80
updateMethod · 0.45

Tested by 2

run_codeMethod · 0.64
magic_aimportMethod · 0.64