File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Original file line number Diff line number Diff line change @@ -304,10 +304,12 @@ def install_repl_displayhook() -> None:
304
304
# This code can be removed when Python 3.12, the latest version supported by
305
305
# IPython < 8.24, reaches end-of-life in late 2028.
306
306
from IPython .core .pylabtools import backend2gui
307
- # trigger IPython's eventloop integration, if available
308
307
ipython_gui_name = backend2gui .get (get_backend ())
309
- if ipython_gui_name :
310
- ip .enable_gui (ipython_gui_name )
308
+ else :
309
+ _ , ipython_gui_name = backend_registry .resolve_backend (get_backend ())
310
+ # trigger IPython's eventloop integration, if available
311
+ if ipython_gui_name :
312
+ ip .enable_gui (ipython_gui_name )
311
313
312
314
313
315
def uninstall_repl_displayhook () -> None :
You can’t perform that action at this time.
0 commit comments