You are viewing an older version (9.3.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.3.0 / IPython / core / interactiveshell / InteractiveShell / enable_matplotlib

function

IPython.core.interactiveshell:InteractiveShell.enable_matplotlib

source: /IPython/core/interactiveshell.py :3731

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, string

If 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