2👍
✅
The reason is that I import seaborn
before I import matplotlib
. This caused matplotlib not running in the right place.
2👍
From here: RuntimeError: Invalid DISPLAY variable
import matplotlib.pyplot as plt
plt.switch_backend('agg')
I used this on a remote machine, with ssh & screen, no X forwarding.
- [Django]-Django : Parsing Json data to template
- [Django]-Append extra data to request.POST in Django
- [Django]-Django – Build a model filter from string
- [Django]-How to create new tables in Database for each day in Django
Source:stackexchange.com