##// END OF EJS Templates
docstrings for class and __init__
Jonathan Taylor -
Show More
@@ -61,10 +61,31 b' class RMagicError(ValueError):'
61
61
62 @magics_class
62 @magics_class
63 class RMagics(Magics):
63 class RMagics(Magics):
64 """A set of magics useful for interactive work with R via rpy2.
65 """
64
66
65 def __init__(self, shell, Rconverter=np.asarray,
67 def __init__(self, shell, Rconverter=np.asarray,
66 pyconverter=np.asarray,
68 pyconverter=np.asarray,
67 cache_display_data=False):
69 cache_display_data=False):
70 """
71 Parameters
72 ----------
73
74 shell : IPython shell
75
76 Rconverter : callable
77 To be called on return values from R before returning
78 to ipython.
79
80 pyconverter : callable
81 To be called on values in ipython namespace before
82 assigning to variables in rpy2.
83
84 cache_display_data : bool
85 If True, the published results of the final call to R are
86 cached in the variable 'display_cache'.
87
88 """
68 super(RMagics, self).__init__(shell)
89 super(RMagics, self).__init__(shell)
69 self.cache_display_data = cache_display_data
90 self.cache_display_data = cache_display_data
70
91
General Comments 0
You need to be logged in to leave comments. Login now