You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
With version 3.5.0 the qt4 support is completely dropped in matplotlib (qt6 is supported though).
This is what happens when starting a console with qt4 set:
Output from spyder call 'show_mpl_backend_errors':
=========================================================================
NOTE: The following error appeared when setting your Matplotlib backend!!
=========================================================================
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/spyder_kernels/console/kernel.py", line 723, in _set_mpl_backend
get_ipython().run_line_magic(magic, backend)
File "/usr/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 2364, in run_line_magic
result = fn(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/usr/lib/python3.10/site-packages/IPython/core/magic.py", line 187, in <lambda>
call = lambda f, *a, **k: f(*a, **k)
File "/usr/lib/python3.10/site-packages/IPython/core/magics/pylab.py", line 99, in matplotlib
gui, backend = self.shell.enable_matplotlib(args.gui.lower() if isinstance(args.gui, str) else args.gui)
File "/usr/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3546, in enable_matplotlib
pt.activate_matplotlib(backend)
File "/usr/lib/python3.10/site-packages/IPython/core/pylabtools.py", line 352, in activate_matplotlib
matplotlib.rcParams['backend'] = backend
File "/home/oscar/dev/matplotlib/lib/matplotlib/__init__.py", line 644, in __setitem__
raise ValueError(f"Key {key}: {ve}") from None
ValueError: Key backend: 'qt4agg' is not a valid value for backend; supported values are ['GTK3Agg', 'GTK3Cairo', 'GTK4Agg', 'GTK4Cairo', 'MacOSX', 'nbAgg', 'QtAgg', 'QtCairo', 'Qt5Agg', 'Qt5Cairo', 'TkAgg', 'TkCairo', 'WebAgg', 'WX', 'WXAgg', 'WXCairo', 'agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg', 'template']
Similar error message with gtk.
I may be tempted to go for a PR, but how should one deal with different versions etc? If a user has a pre 3.5.0-version it will still work, so just removing them may not be the obvious solution?
What steps reproduce the problem?
Open preferences
Change IPython/Graphics to qt4 or gtk
Start a new console
What is the expected output? What do you see instead?
I have now tried to sort things out and as a consequence of not sorting it out, read up a bit. I realize that it comes down to ipython/ipykernel#775 (where @ccordoba12 has commented, so you are well aware of it).
Anyway, removing qt4 and gtk (and always enabling wx since it is not PY2 only anymore) may be an option so far. Let me know if you want a PR for that part.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
With version 3.5.0 the qt4 support is completely dropped in matplotlib (qt6 is supported though).
This is what happens when starting a console with qt4 set:
Similar error message with gtk.
I may be tempted to go for a PR, but how should one deal with different versions etc? If a user has a pre 3.5.0-version it will still work, so just removing them may not be the obvious solution?
What steps reproduce the problem?
What is the expected output? What do you see instead?
No error messages = remove gtk and qt4 options.
Paste Traceback/Error Below (if applicable)
Versions
Dependencies
The text was updated successfully, but these errors were encountered: