I\'m asking this question because I can\'t solve one problem in Python/Django
(actually in pure Python it\'s ok) which leads to RuntimeError: tcl_asyncdel
The above (accepted) answer is a solution in a terminal environment. If you debug in an IDE, you still might wanna use 'TkAgg
' for displaying data. In order to prevent this issue, apply these two simple rules:
fig = plt.figure()
Example code:
import matplotlib
matplotlib.use('TkAgg')
from matplotlib import pyplot as plt
fig = plt.figure()
plt.plot(data[:,:,:3])
plt.show()
This proves to be the a good intermediate solution under MacOS and PyCharm IDE.