##// END OF EJS Templates
Delay import from matplotlib_inline.backend_inline
Ian Thomas -
Show More
@@ -3651,8 +3651,6 b' class InteractiveShell(SingletonConfigurable):'
3651 make sense in all contexts, for example a terminal ipython can't
3651 make sense in all contexts, for example a terminal ipython can't
3652 display figures inline.
3652 display figures inline.
3653 """
3653 """
3654 from matplotlib_inline.backend_inline import configure_inline_support
3655
3656 from IPython.core import pylabtools as pt
3654 from IPython.core import pylabtools as pt
3657 gui, backend = pt.find_gui_and_backend(gui, self.pylab_gui_select)
3655 gui, backend = pt.find_gui_and_backend(gui, self.pylab_gui_select)
3658
3656
@@ -3667,6 +3665,8 b' class InteractiveShell(SingletonConfigurable):'
3667 gui, backend = pt.find_gui_and_backend(self.pylab_gui_select)
3665 gui, backend = pt.find_gui_and_backend(self.pylab_gui_select)
3668
3666
3669 pt.activate_matplotlib(backend)
3667 pt.activate_matplotlib(backend)
3668
3669 from matplotlib_inline.backend_inline import configure_inline_support
3670 configure_inline_support(self, backend)
3670 configure_inline_support(self, backend)
3671
3671
3672 # Now we must activate the gui pylab wants to use, and fix %run to take
3672 # Now we must activate the gui pylab wants to use, and fix %run to take
General Comments 0
You need to be logged in to leave comments. Login now