def enable_pylab(self, gui=None, import_all=True, welcome_message=False):
    "Activate pylab support at runtime.\n\n        This turns on support for matplotlib, preloads into the interactive\n        namespace all of numpy and pylab, and configures IPython to correctly\n        interact with the GUI event loop.  The GUI backend to be used can be\n        optionally selected with the optional ``gui`` argument.\n\n        This method only adds preloading the namespace to InteractiveShell.enable_matplotlib.\n\n        Parameters\n        ----------\n        gui : optional, string\n            If given, dictates the choice of matplotlib GUI backend to use\n            (should be one of IPython's supported backends, 'qt', 'osx', 'tk',\n            'gtk', 'wx' or 'inline'), otherwise we use the default chosen by\n            matplotlib (as dictated by the matplotlib build-time options plus the\n            user's matplotlibrc configuration file).  Note that not all backends\n            make sense in all contexts, for example a terminal ipython can't\n            display figures inline.\n        import_all : optional, bool, default: True\n            Whether to do `from numpy import *` and `from pylab import *`\n            in addition to module imports.\n        welcome_message : deprecated\n            This argument is ignored, no welcome message will be displayed.\n        "
    from IPython.core.pylabtools import import_pylab
    (gui, backend) = self.enable_matplotlib(gui)
    ns = {}
    import_pylab(ns, import_all)
    ignored = {'__builtins__'}
    both = set(ns).intersection(self.user_ns).difference(ignored)
    clobbered = [name for name in both if (self.user_ns[name] is not ns[name])]
    self.user_ns.update(ns)
    self.user_ns_hidden.update(ns)
    return (gui, backend, clobbered)
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.
def enable_pylab(self, gui=None, import_all=True, welcome_message=False):
    "Activate pylab support at runtime.\n\n        This turns on support for matplotlib, preloads into the interactive\n        namespace all of numpy and pylab, and configures IPython to correctly\n        interact with the GUI event loop.  The GUI backend to be used can be\n        optionally selected with the optional ``gui`` argument.\n\n        This method only adds preloading the namespace to InteractiveShell.enable_matplotlib.\n\n        Parameters\n        ----------\n        gui : optional, string\n            If given, dictates the choice of matplotlib GUI backend to use\n            (should be one of IPython's supported backends, 'qt', 'osx', 'tk',\n            'gtk', 'wx' or 'inline'), otherwise we use the default chosen by\n            matplotlib (as dictated by the matplotlib build-time options plus the\n            user's matplotlibrc configuration file).  Note that not all backends\n            make sense in all contexts, for example a terminal ipython can't\n            display figures inline.\n        import_all : optional, bool, default: True\n            Whether to do `from numpy import *` and `from pylab import *`\n            in addition to module imports.\n        welcome_message : deprecated\n            This argument is ignored, no welcome message will be displayed.\n        "
    from IPython.core.pylabtools import import_pylab
    (gui, backend) = self.enable_matplotlib(gui)
    ns = {}
    import_pylab(ns, import_all)
    ignored = {'__builtins__'}
    both = set(ns).intersection(self.user_ns).difference(ignored)
    clobbered = [name for name in both if (self.user_ns[name] is not ns[name])]
    self.user_ns.update(ns)
    self.user_ns_hidden.update(ns)
    return (gui, backend, clobbered)