Disconnect from the display hook of the current shell.
()
| 345 | |
| 346 | |
| 347 | def uninstall_repl_displayhook() -> None: |
| 348 | """Disconnect from the display hook of the current shell.""" |
| 349 | global _REPL_DISPLAYHOOK |
| 350 | if _REPL_DISPLAYHOOK is _ReplDisplayHook.IPYTHON: |
| 351 | from IPython import get_ipython |
| 352 | ip = get_ipython() |
| 353 | ip.events.unregister("post_execute", _draw_all_if_interactive) |
| 354 | _REPL_DISPLAYHOOK = _ReplDisplayHook.NONE |
| 355 | |
| 356 | |
| 357 | draw_all = _pylab_helpers.Gcf.draw_all |
no test coverage detected
searching dependent graphs…