Index: pyx/pyx/canvas.py
===================================================================
--- pyx/pyx/canvas.py	(revision 3247)
+++ pyx/pyx/canvas.py	(working copy)
@@ -332,8 +332,24 @@
             os.unlink(fname)
         else:
             raise RuntimeError("input 'eps' or 'pdf' expected")
+            
+            
+    def _repr_png_(self):
+        """
+        Automatically represent as PNG graphic when evaluated in IPython notebook.
+        """
+        import tempfile, time, os
+        fn = tempfile.gettempdir() + "/" + str(time.time()) + ".png"
 
+        self.pipeGS(fn)
+        for k in range(5):
+            if os.path.exists(fn):
+                break
+            time.sleep(.5)
+        with open(fn, "rb") as ff:
+            return ff.read()
 
+
 class layered_canvas(canvas):
 
     def __init__(self, **kwargs):
