Set up hooks to track execution state
(self)
| 66 | raise TypeError("metadata must be a dict, got: %r" % data) |
| 67 | |
| 68 | def _setup_execution_tracking(self): |
| 69 | """Set up hooks to track execution state""" |
| 70 | self.shell.events.register("post_execute", self._on_post_execute) |
| 71 | self.shell.events.register("pre_execute", self._on_pre_execute) |
| 72 | |
| 73 | def _on_post_execute(self): |
| 74 | """Called at start of post_execute phase""" |