()
| 174 | |
| 175 | |
| 176 | def 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 | |
| 184 | def activate_pyplot(): |
nothing calls this directly
no test coverage detected