DEPRECATED: Use ip.events.register('post_run_cell', func) Register a function for calling after code execution.
(self, func)
| 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 |