We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 699ecad commit 58b8743Copy full SHA for 58b8743
lib/matplotlib/pyplot.py
@@ -2247,8 +2247,8 @@ def getname_val(identifier):
2247
# requested, ignore rcParams['backend'] and force selection of a backend that
2248
# is compatible with the current running interactive framework.
2249
if (rcParams["backend_fallback"]
2250
- and dict.__getitem__(rcParams, "backend") in [
2251
- k for k in _interactive_bk if k not in ['WebAgg', 'nbAgg']]
+ and dict.__getitem__(rcParams, "backend") in (
+ set(_interactive_bk) - {'WebAgg', 'nbAgg'})
2252
and cbook._get_running_interactive_framework()):
2253
dict.__setitem__(rcParams, "backend", rcsetup._auto_backend_sentinel)
2254
# Set up the backend.
0 commit comments