In [1]:
%matplotlib inline
from ggplot import *
In [2]:
p = ggplot(aes(x='mpg'), data=mtcars) + geom_histogram()
print p
p.save("myplot.png")
And voilà. If you take a look at myplot.png
you can see that we've saved our plot to a file
# markdown syntax for opening an image
![](./myplot.png)
In [ ]: