mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
refactoring in matplotlib support
This commit is contained in:
@@ -176,7 +176,9 @@ def process_exec_queue(interpreter):
|
||||
|
||||
from pydev_import_hook import import_hook_manager
|
||||
from pydev_ipython.matplotlibtools import activate_matplotlib, activate_pylab, activate_pyplot
|
||||
import_hook_manager.add_module_name("matplotlib", activate_matplotlib(interpreter))
|
||||
import_hook_manager.add_module_name("matplotlib", lambda: activate_matplotlib(interpreter.enableGui))
|
||||
# enable_gui_function in activate_matplotlib should be called in main thread. That's why we call
|
||||
# interpreter.enableGui which put it into the interpreter's exec_queue and executes it in the main thread.
|
||||
import_hook_manager.add_module_name("pylab", activate_pylab)
|
||||
import_hook_manager.add_module_name("pyplot", activate_pyplot)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user