TenjintShell.enable_pylab¶
-
TenjintShell.
enable_pylab
(gui=None, import_all=True, welcome_message=False)¶ Activate pylab support at runtime.
This turns on support for matplotlib, preloads into the interactive namespace all of numpy and pylab, and configures IPython to correctly interact with the GUI event loop. The GUI backend to be used can be optionally selected with the optional
gui
argument.This method only adds preloading the namespace to InteractiveShell.enable_matplotlib.
- 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.
import_all (optional, bool, default: True) – Whether to do from numpy import * and from pylab import * in addition to module imports.
welcome_message (deprecated) – This argument is ignored, no welcome message will be displayed.