Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6221736 + 1531850 commit 03a73c8Copy full SHA for 03a73c8
lib/matplotlib/pyplot.py
@@ -304,10 +304,12 @@ def install_repl_displayhook() -> None:
304
# This code can be removed when Python 3.12, the latest version supported by
305
# IPython < 8.24, reaches end-of-life in late 2028.
306
from IPython.core.pylabtools import backend2gui
307
- # trigger IPython's eventloop integration, if available
308
ipython_gui_name = backend2gui.get(get_backend())
309
- if ipython_gui_name:
310
- ip.enable_gui(ipython_gui_name)
+ else:
+ _, ipython_gui_name = backend_registry.resolve_backend(get_backend())
+ # trigger IPython's eventloop integration, if available
311
+ if ipython_gui_name:
312
+ ip.enable_gui(ipython_gui_name)
313
314
315
def uninstall_repl_displayhook() -> None:
0 commit comments