IPython - Enhanced Interactive Python

Add a magic function to paste contents of clipboard

Reported by Fernando Perez on 2009-03-04
2
Affects Status Importance Assigned to Milestone
IPython
Fix Released
Wishlist
Unassigned

Bug Description

It would be very useful to have a magic function that directly inserts the clipboard contents into the read buffer. See this thread on the mailing list for background and comments by Robert on the implementation:

http://lists.ipython.scipy.org/pipermail/ipython-user/2009-March/006210.html
http://lists.ipython.scipy.org/pipermail/ipython-user/2009-March/006228.html

Note: when implementing this, care must be paid to history synchronization issues. Do we want the history to be updated or not? What about the readline buffer itself?

Robert Kern (robert-kern) wrote :

Here's a start:

  https://code.launchpad.net/~robert-kern/ipython/clipboard

It works mostly like %cpaste except for the interaction with readline, of course.

Fernando Perez (fdo.perez) wrote :

This was included in the 0.10 release, it's called %paste.

Changed in ipython:
importance: Undecided → Wishlist
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers