A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/issues/211/ below:

paste command not working · Issue #211 · ipython/ipython · GitHub

I apologize if this is user error. I'm new to Python and even newer to IPython. :)

Windows XP, sp3.
Python 2.6
IPython 0.10.1 win32

If I understand correctly, the paste command doesn't need any parameters. It's supposed to pull the contents of the clipboard then paste and run it.

Clipboard contents:
print "my clipboard paste test"
--

Result:

In [43]: paste
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

C:\Dev\Python\ in ()

C:\Program Files\Python26\lib\site-packages\IPython\iplib.pyc in ipmagic(self, arg_s)
   1180         else:
   1181             magic_args = self.var_expand(magic_args,1)
-> 1182             return fn(magic_args)
   1183
   1184     def ipalias(self,arg_s):

C:\Program Files\Python26\lib\site-packages\IPython\Magic.pyc in magic_paste(self, parameter_s)
   3411             return
   3412
-> 3413         text = self.shell.hooks.clipboard_get()
   3414         block = self._strip_pasted_lines_for_code(text.splitlines())
   3415         self._execute_block(block, par)

C:\Program Files\Python26\lib\site-packages\IPython\hooks.pyc in __call__(self, *args, **kw)
    139             #print "prio",prio,"cmd",cmd #dbg

    140             try:
--> 141                 ret = cmd(*args, **kw)
    142                 return ret
    143             except ipapi.TryNext, exc:

C:\Program Files\Python26\lib\site-packages\IPython\hooks.pyc in clipboard_get(self)
    260     dispatcher = CommandChainDispatcher()
    261     for func in chain:
    262         dispatcher.add(func)
--> 263     text = dispatcher()
    264     return text

C:\Program Files\Python26\lib\site-packages\IPython\hooks.pyc in __call__(self, *args, **kw)
    139             #print "prio",prio,"cmd",cmd #dbg

    140             try:
--> 141                 ret = cmd(*args, **kw)
    142                 return ret
    143             except ipapi.TryNext, exc:

TypeError: tkinter_clipboard_get() takes no arguments (1 given)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4