From a01d41a138c353a199d5da2f37d5358538c91b8b 2014-05-10 17:49:27
From: Thomas Kluyver <takowl@gmail.com>
Date: 2014-05-10 17:49:27
Subject: [PATCH] Make rmagic display call compatible with updated API

Passing all arguments as keywords will work with the previous API as
well.

CC @davclark - You'll want to copy this change across to rpy2, because
without it, rmagic is broken with IPython master.

---

diff --git a/IPython/extensions/rmagic.py b/IPython/extensions/rmagic.py
index 03ab809..a590fe7 100644
--- a/IPython/extensions/rmagic.py
+++ b/IPython/extensions/rmagic.py
@@ -665,7 +665,7 @@ class RMagics(Magics):
                 self.shell.push({output:self.Rconverter(self.r(output), dataframe=True)})
 
         for tag, disp_d in display_data:
-            publish_display_data(tag, disp_d)
+            publish_display_data(data=disp_d, source=tag)
 
         # this will keep a reference to the display_data
         # which might be useful to other objects who happen to use