TenjintShell.enable_matplotlib¶
-
TenjintShell.
enable_matplotlib
(gui=None)¶ Enable interactive matplotlib and inline figure support.
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.