Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [6]:
- %R plot(X, Y)
- ---------------------------------------------------------------------------
- TypeError Traceback (most recent call last)
- <ipython-input-6-b7a80db7b68d> in <module>()
- ----> 1 get_ipython().magic(u'R plot(X, Y)')
- /Applications/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
- 2134 magic_name, _, magic_arg_s = arg_s.partition(' ')
- 2135 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
- -> 2136 return self.run_line_magic(magic_name, magic_arg_s)
- 2137
- 2138 #-------------------------------------------------------------------------
- /Applications/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)
- 2060 args.append(sys._getframe(stack_depth).f_locals)
- 2061 with self.builtin_trap:
- -> 2062 result = fn(*args)
- 2063 return result
- 2064
- /Users/nitin/.ipython/extensions/rmagic.py in R(self, line, cell, local_ns)
- /Applications/anaconda/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
- 189 # but it's overkill for just that one bit of state.
- 190 def magic_deco(arg):
- --> 191 call = lambda f, *a, **k: f(*a, **k)
- 192
- 193 if callable(arg):
- /Users/nitin/.ipython/extensions/rmagic.py in R(self, line, cell, local_ns)
- 494 line_mode = False
- 495
- --> 496 code = ' '.join(args.code) + code
- 497
- 498 # if there is no local namespace then default to an empty dict
- TypeError: coercing to Unicode: need string or buffer, dict found
Add Comment
Please, Sign In to add comment