From b7147bd589338d74c1b4536523eb6fdc9c9dfc92 Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Thu, 3 Mar 2022 10:16:17 -0300 Subject: [PATCH] Enable matplotlib interactive plots with QtAgg backend. Fixes #858 --- src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py b/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py index 769cff2e1..71f026443 100644 --- a/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py +++ b/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py @@ -5,7 +5,7 @@ backends = {'tk': 'TkAgg', 'gtk': 'GTKAgg', 'wx': 'WXAgg', - 'qt': 'Qt4Agg', # qt3 not supported + 'qt': 'QtAgg', # Auto-choose qt4/5 'qt4': 'Qt4Agg', 'qt5': 'Qt5Agg', 'osx': 'MacOSX'} @@ -15,8 +15,6 @@ # most part it's just a reverse of the above dict, but we also need to add a # few others that map to the same GUI manually: backend2gui = dict(zip(backends.values(), backends.keys())) -backend2gui['Qt4Agg'] = 'qt4' -backend2gui['Qt5Agg'] = 'qt5' # In the reverse mapping, there are a few extra valid matplotlib backends that # map to the same GUI support backend2gui['GTK'] = backend2gui['GTKCairo'] = 'gtk'