MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / activate_pylab

Function activate_pylab

pydev_ipython/matplotlibtools.py:176–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174
175
176def activate_pylab():
177 pylab = sys.modules["pylab"]
178 pylab.show._needmain = False
179 # We need to detect at runtime whether show() is called by the user.
180 # For this, we wrap it into a decorator which adds a 'called' flag.
181 pylab.draw_if_interactive = flag_calls(pylab.draw_if_interactive)
182
183
184def activate_pyplot():

Callers

nothing calls this directly

Calls 1

flag_callsFunction · 0.85

Tested by

no test coverage detected