-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: can't use to_clipboard/read_clipboard on WSL 2.0 #38527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FWIW, I think the issue is here: https://github.com/pandas-dev/pandas/blob/master/pandas/io/clipboard/__init__.py#L523 Here is what I have in
|
Ok, I can confirm that the By switching to |
Thanks for the investigation. Care to open a PR with that fix? |
Sure, although this is just my 3rd day of using WSL so I'm not certain what would be a universal fix. Comparing Perhaps a better option is to use an environment variable. It looks like the following are set for me:
Maybe we just use one of those? I'd lean towards |
Upon further research, it looks like wslconfig has been there from the start. See: https://patrickwu.space/wslconf/#wsl-feature-availability Maybe checking for that executable: |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
pd.read_clipboard
andpd.DataFrame.to_clipboard
should work. For instance, I can run the following with no issues:Expected Output
N/A
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : b5958ee
python : 3.8.5.final.0
python-bits : 64
OS : Linux
OS-release : 4.19.128-microsoft-standard
Version : #1 SMP Tue Jun 23 12:58:10 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.5
numpy : 1.19.4
pytz : 2020.4
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.19.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
The text was updated successfully, but these errors were encountered: