Klonuo Umom | 15 Oct 13:18 2011
Picon

%paste magic problem

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:

%paste
---------------------------------------------------------------------------
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 = {}

/usr/local/lib/python2.7/dist-packages/IPython/frontend/terminal/interactiveshell.pyc in magic_paste(self, parameter_s)
    577             return
    578 
--> 579         text = self.shell.hooks.clipboard_get()
    580         block = self._strip_pasted_lines_for_code(text.splitlines())
    581 

/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 caller

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

TryNext: 

trying same in qtconsole I get:

%paste
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?
_______________________________________________
IPython-User mailing list
IPython-User <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user

Gmane