[IPython-user] paste frustrations
Fernando Perez
fperez.net@gmail....
Wed Mar 4 15:26:41 CST 2009
On Wed, Mar 4, 2009 at 12:53 PM, Robert Kern <robert.kern@gmail.com> wrote:
> Perhaps a solution would be to write a magic (with platform-specific backends)
> that grabs the text for the clipboard and executes it without requiring user
> intervention. It would be significantly more usable than %cpaste even if the
> terminal or readline are working completely correctly.
>
> The OS X backend is trivial; call out to pbpaste(1) using popen. xsel(1) appears
> to be the thing for X. Windows would require either Mark Hammond's win32api or
> ctypes.
Good point. Filed:
https://bugs.launchpad.net/ipython/+bug/337951
Code would be even better, of course. But this should do for now :)
Cheers,
f
More information about the IPython-user
mailing list