Closed seanv507 closed 4 years ago
http://pandas-docs.github.io/pandas-docs-travis/io.html#clipboard
Note
You may need to install xclip or xsel (with gtk, PyQt5, PyQt4 or qtpy) on Linux to use these methods.
Do you have those installed/
well I installed xsel, and it still didn't work. [and note it works in normal python just not ipython?]. (and it used to work on my linux machine??)
Is your ipython the same environment as your python? (output of which ipython
and which python
).
On Fri, Sep 14, 2018 at 7:06 AM seanv507 notifications@github.com wrote:
well I installed xsel, and it still didn't work. [and note it works in normal python just not ipython?]. (and it used to work on my linux machine??)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pandas-dev/pandas/issues/22707#issuecomment-421338301, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQHIq_vKV7tYnx5PHniDgHUtJqlm9Jqks5ua5vWgaJpZM4Wox5T .
thanks - yes it is just root anaconda folder
Any luck debugging this @seanv507?
not so far. I don' know where to look [ I know it must be something to do with my config]. my workaround currently is pyperclip.copy(df.to_csv())
On Tue, Sep 18, 2018 at 5:09 PM Tom Augspurger notifications@github.com wrote:
Any luck debugging this @seanv507 https://github.com/seanv507?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pandas-dev/pandas/issues/22707#issuecomment-422431727, or mute the thread https://github.com/notifications/unsubscribe-auth/ADJxL04nU3gbs9ae8EYw5fI75j7W07Knks5ucQy1gaJpZM4Wox5T .
The to_clipboard function is still not working properly with ipython or jupyter, but it works with python. The example code above results in following error:
QXcbClipboard::setMimeData: Cannot set X11 selection owner
It seems that in my case the qt_clipboard was used. Is there a possibility to switch to a another clipboard e.g. xclip or xsel (pyperclip works fine)?
pd.show_versions()
It's possible that the recenlty updated pyperclip we vendor has fixed some issues.
Is there a possibility to switch to a another clipboard e.g. xclip or xsel (pyperclip works fine)?
Not really, aside from manually setting pandas.io.clipboard.copy
and pandas.io.clipboard.paste
.
Going to close this since this is isn't easily reproducible so it's not clear what needs to be done.
It seems be fixed in pd.version = '0.26.0.dev0+1487.g733eb77f7' Thanks.
Installing xclip fixed this for me.
Same for me. Needed to sudo apt install xclip
.
Ubuntu 20.04 pandas 1.2.4
Code Sample, a copy-pastable example if possible
Problem description
Hi since several months I am no longer able to use the to_clipboard function in ipython - nothing pasted to clipboard. I notice it works in python!!. I have tried using latest version of ipython/pandas on anaconda but no improvement
Expected Output
I expect to paste dataframe into text file etc.
Output of
pd.show_versions()