TenjintShell.enable_matplotlib

TenjintShell.enable_matplotlib(gui=None)

Enable interactive matplotlib and inline figure support.

This takes the following steps:

  1. select the appropriate eventloop and matplotlib backend

  2. set up matplotlib for interactive use with that backend

  3. configure formatters for inline figure display

  4. 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.