question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

to_clipboard has no effect in ipython (works in python) (linux)

See original GitHub issue

Code Sample, a copy-pastable example if possible

# Your code here
import pandas as pd
a=pd.DataFrame([0,1,23])
a.to_clipboard()

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()

INSTALLED VERSIONS

commit: None python: 3.6.3.final.0 python-bits: 64 OS: Linux OS-release: 4.15.0-34-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8

pandas: 0.23.4 pytest: 3.7.2 pip: 9.0.3 setuptools: 40.2.0 Cython: 0.26.1 numpy: 1.13.3 scipy: 1.0.0 pyarrow: 0.7.1 xarray: None IPython: 6.5.0 sphinx: 1.6.3 patsy: 0.4.1 dateutil: 2.7.3 pytz: 2014.10 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.2 feather: None matplotlib: 2.1.0 openpyxl: 2.4.8 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.1.0 bs4: 4.4.1 html5lib: 0.9999999 sqlalchemy: 1.0.14 pymysql: None psycopg2: 2.7.1 (dt dec pq3 ext lo64) jinja2: 2.7.3 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
filiphlcommented, Nov 19, 2020

Installing xclip fixed this for me.

0reactions
mattmoehrcommented, May 3, 2021

Same for me. Needed to sudo apt install xclip.

Ubuntu 20.04 pandas 1.2.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling right click copy for ipython plots? - Stack Overflow
I found some advice to change the "Pasting from other programs" option in Word settings but it has no effect. Also another article...
Read more >
Jupyter Notebook Documentation - Read the Docs
You can create new notebooks from the dashboard with the New Notebook button, or open existing ones by clicking on their name. You...
Read more >
Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >
Install JupyterHub and JupyterLab from the ground up
1 ) Install into the JupyterHub virtualenv - this ensures it overrides the default python version. It will only be visible to the...
Read more >
Usage Guide — Matplotlib 3.1.0 documentation
Interactive mode works with suitable backends in ipython and in the ordinary python shell, but it does not work in the IDLE IDE....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found