If used IPython Notebook: ``` echo 'backend : Agg' >> ~/.config/matplotlib/matplotlibrc ``` See: http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server