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

Method register_post_execute

IPython/core/interactiveshell.py:1067–1074  ·  view source on GitHub ↗

DEPRECATED: Use ip.events.register('post_run_cell', func) Register a function for calling after code execution.

(self, func)

Source from the content-addressed store, hash-verified

1065 self.events.register("pre_execute", self._clear_warning_registry)
1066
1067 def register_post_execute(self, func):
1068 """DEPRECATED: Use ip.events.register('post_run_cell', func)
1069
1070 Register a function for calling after code execution.
1071 """
1072 warn("ip.register_post_execute is deprecated, use "
1073 "ip.events.register('post_run_cell', func) instead.", stacklevel=2)
1074 self.events.register('post_run_cell', func)
1075
1076 def _clear_warning_registry(self):
1077 # clear the warning registry, so that different code blocks with

Callers

nothing calls this directly

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected