I tried the following code (test_seaborn.py):
test_seaborn.py
import matplotlib matplotlib.use(\'Agg\') import matplotlib.pyplot as plt matplotlib.style.use(\'g
This works for me
import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline sns.factorplot(x='holiday',data=data,kind='count',size=5,aspect=1) plt.savefig('holiday-vs-count.png')