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

Function activate_pyplot

pydev_ipython/matplotlibtools.py:184–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def activate_pyplot():
185 pyplot = sys.modules["matplotlib.pyplot"]
186 pyplot.show._needmain = False
187 # We need to detect at runtime whether show() is called by the user.
188 # For this, we wrap it into a decorator which adds a 'called' flag.
189 pyplot.draw_if_interactive = flag_calls(pyplot.draw_if_interactive)

Callers

nothing calls this directly

Calls 1

flag_callsFunction · 0.85

Tested by

no test coverage detected