Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Klonuo Umom <klonuo <at> gmail.com>
Subject: %paste magic problem
Newsgroups: gmane.comp.python.ipython.user
Date: Saturday 15th October 2011 11:18:53 UTC (over 5 years ago)
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/ in ()
----> 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?
 
CD: 3ms