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
{{ message }}
Repository navigation
[Bug]: Second call to .use() causes recursion error #20808
Using Python 3.9.6 and matplotlib version 3.4.2 on Mac OSX, this:
import matplotlib as mpl
mpl.use("TkAgg")
import matplotlib.pylab as plt
mpl.use("TkAgg")
gives:
Backend TkAgg is interactive backend. Turning interactive mode on.
Traceback (most recent call last):
File "<input>", line 4, in <module>
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydev_ipython/matplotlibtools.py", line 70, in patched_use
matplotlib.real_use(*args, **kwargs)
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydev_ipython/matplotlibtools.py", line 70, in patched_use
matplotlib.real_use(*args, **kwargs)
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydev_ipython/matplotlibtools.py", line 70, in patched_use
matplotlib.real_use(*args, **kwargs)
[Previous line repeated 987 more times]
RecursionError: maximum recursion depth exceeded
Activity
jklymak commentedon Aug 8, 2021
Can you try this without pycharm?
jklymak commentedon Aug 8, 2021
I believe this is a pycharm issue: fabioz/PyDev.Debugger#148 and will close here. They patch our
matplotlib.use.