##// END OF EJS Templates
Fix use of --pylab=auto and --matplotlib=auto
Ian Thomas -
Show More
@@ -3654,6 +3654,13 b' class InteractiveShell(SingletonConfigurable):'
3654 make sense in all contexts, for example a terminal ipython can't
3654 make sense in all contexts, for example a terminal ipython can't
3655 display figures inline.
3655 display figures inline.
3656 """
3656 """
3657 from .pylabtools import _matplotlib_manages_backends
3658
3659 if not _matplotlib_manages_backends() and gui in (None, "auto"):
3660 # Early import of backend_inline required for its side effect of
3661 # calling _enable_matplotlib_integration()
3662 import matplotlib_inline.backend_inline
3663
3657 from IPython.core import pylabtools as pt
3664 from IPython.core import pylabtools as pt
3658 gui, backend = pt.find_gui_and_backend(gui, self.pylab_gui_select)
3665 gui, backend = pt.find_gui_and_backend(gui, self.pylab_gui_select)
3659
3666
General Comments 0
You need to be logged in to leave comments. Login now