Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Support for cloud9 ide and matplotlib or other graphical tool for python?

The thing preventing me from switching to cloud9 is the lack of support for matplotlib since graphing things are very important to my work.

I have tried installing matplotlib but there seems to be some problems with pygtk even though it appears to be installed. Is it even possible for an online ide to interact with gtk windows on my local computer? Perhaps the graphs could be generated remotely and saved to my directory?

It would be great if anyone had successfully managed this could show me how?

like image 268
david_adler Avatar asked Feb 26 '13 12:02

david_adler


1 Answers

You can change the backend with

import matplotlib
matplotlib.use('Agg')

and then save the figure using figure.savefig('filename')

like image 156
david_adler Avatar answered Oct 09 '22 11:10

david_adler