bundles / IPython 9.3.0 / IPython / core / interactiveshell / InteractiveShell / enable_matplotlib
function
IPython.core.interactiveshell:InteractiveShell.enable_matplotlib
Signature
def enable_matplotlib ( self , gui = None ) Summary
Enable interactive matplotlib and inline figure support.
Extended Summary
This takes the following steps:
select the appropriate eventloop and matplotlib backend
set up matplotlib for interactive use with that backend
configure formatters for inline figure display
enable the selected gui eventloop
Parameters
gui: optional, stringIf given, dictates the choice of matplotlib GUI backend to use (should be one of IPython's supported backends, 'qt', 'osx', 'tk', 'gtk', 'wx' or 'inline'), otherwise we use the default chosen by matplotlib (as dictated by the matplotlib build-time options plus the user's matplotlibrc configuration file). Note that not all backends make sense in all contexts, for example a terminal ipython can't display figures inline.
Aliases
-
IPython.InteractiveShell.enable_matplotlib