[IPython-User] %paste magic problem

Klonuo Umom klonuo@gmail....
Sat Oct 15 06:18:53 CDT 2011

I noticed this recently, and as I can't get %paste working I thought to ask
some help.
This I got in 0.11 terminal console:

TryNext                                   Traceback (most recent call last)
/tmp/<ipython-input-86-771cb64cec93> in <module>()
----> 1 get_ipython().magic(u"paste")

/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.pyc in
magic(self, arg_s, next_input)
   1892                 self._magic_locals = sys._getframe(1).f_locals
   1893             with self.builtin_trap:
-> 1894                 result = fn(magic_args)
   1895             # Ensure we're not keeping object references around:

   1896             self._magic_locals = {}

in magic_paste(self, parameter_s)
    577             return
--> 579         text = self.shell.hooks.clipboard_get()
    580         block = self._strip_pasted_lines_for_code(text.splitlines())

/usr/local/lib/python2.7/dist-packages/IPython/core/hooks.pyc in
__call__(self, *args, **kw)
    139                     kw = exc.kwargs
    140         # if no function will accept it, raise TryNext up to the

--> 141         raise TryNext
    143     def __str__(self):


trying same in qtconsole I get:

ERROR: Magic function `paste` not found.

As I know I used this function before with this same version, something must
had happened in the meantime.
Should I reinstall IPython or?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20111015/1f42245a/attachment.html 

More information about the IPython-User mailing list