MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / patch_is_interactive

Function patch_is_interactive

pydev_ipython/matplotlibtools.py:117–125  ·  view source on GitHub ↗

Patch matplotlib function 'use

()

Source from the content-addressed store, hash-verified

115
116
117def patch_is_interactive():
118 """Patch matplotlib function 'use'"""
119 matplotlib = sys.modules["matplotlib"]
120
121 def patched_is_interactive():
122 return matplotlib.rcParams["interactive"]
123
124 matplotlib.real_is_interactive = matplotlib.is_interactive
125 matplotlib.is_interactive = patched_is_interactive
126
127
128def activate_matplotlib(enable_gui_function):

Callers 1

activate_matplotlibFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected