File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -355,9 +355,8 @@ def find_gui_and_backend(gui=None, gui_select=None):
355355 mpl_version_info = getattr (matplotlib , "__version_info__" , (0 , 0 ))
356356 has_unified_qt_backend = mpl_version_info >= (3 , 5 )
357357
358- from IPython .core .pylabtools import backends
359358
360- backends_ = dict (backends )
359+ backends_ = dict (_deprecated_backends )
361360 if not has_unified_qt_backend :
362361 backends_ ["qt" ] = "qt5agg"
363362
@@ -372,10 +371,10 @@ def find_gui_and_backend(gui=None, gui_select=None):
372371 # overwritten that.
373372 # WARNING: this assumes matplotlib 1.1 or newer!!
374373 backend = matplotlib .rcParamsOrig ['backend' ]
374+
375375 # In this case, we need to find what the appropriate gui selection call
376376 # should be for IPython, so we can activate inputhook accordingly
377- from IPython .core .pylabtools import backend2gui
378- gui = backend2gui .get (backend , None )
377+ gui = _deprecated_backend2gui .get (backend , None )
379378
380379 # If we have already had a gui active, we need it and inline are the
381380 # ones allowed.
You can’t perform that action at this time.
0 commit comments