IPython 8.4.0 Pypi GitHub Homepage
Other Docs
Parameters
enable_pylab(self, gui=None, import_all=True, welcome_message=False)

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 :None:None:`from numpy import *` and :None:None:`from pylab import *` in addition to module imports.

welcome_message : deprecated

This argument is ignored, no welcome message will be displayed.

Activate pylab support at runtime.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /IPython/core/interactiveshell.py#3504
type: <class 'function'>
Commit: