(self)
| 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 |
| 1078 | # overlapping line number ranges don't cause spurious suppression of |
| 1079 | # warnings (see gh-6611 for details) |
| 1080 | if "__warningregistry__" in self.user_global_ns: |
| 1081 | del self.user_global_ns["__warningregistry__"] |
| 1082 | |
| 1083 | #------------------------------------------------------------------------- |
| 1084 | # Things related to the "main" module |
nothing calls this directly
no outgoing calls
no test coverage detected