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

Function patch_use

pydev_ipython/matplotlibtools.py:104–114  ·  view source on GitHub ↗

Patch matplotlib function 'use

(enable_gui_function)

Source from the content-addressed store, hash-verified

102
103
104def patch_use(enable_gui_function):
105 """Patch matplotlib function 'use'"""
106 matplotlib = sys.modules["matplotlib"]
107
108 def patched_use(*args, **kwargs):
109 matplotlib.real_use(*args, **kwargs)
110 gui, backend = find_gui_and_backend()
111 enable_gui_function(gui)
112
113 matplotlib.real_use = matplotlib.use
114 matplotlib.use = patched_use
115
116
117def patch_is_interactive():

Callers 1

activate_matplotlibFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected