Skip to content
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

Strings showing non-breaking space in PyCharm Jupyter Notebooks after 1.14 upgrade #19859

Closed
2 tasks done
matquant14 opened this issue Nov 19, 2024 · 1 comment · Fixed by #19864
Closed
2 tasks done
Labels
python Related to Python Polars

Comments

@matquant14
Copy link

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

import polars as pl
df = pl.DataFrame({"Name": "John Doe"})

df

Log output

No response

Issue description

After upgrading to 1.14, strings are showing non-breaking space when using jupyter notebooks in PyCharm.

image

Version 1.13.1 doesn't exhibit this behavior.
image

Expected behavior

Expect 1.14 not to show non-breaking space

Installed versions

Polars:              1.14.0
Index type:          UInt32
Platform:            Windows-10-10.0.19045-SP0
Python:              3.12.7 (tags/v3.12.7:0b05ead, Oct  1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
LTS CPU:             False

----Optional dependencies----
adbc_driver_manager  1.3.0
altair               5.4.1
boto3                <not installed>
cloudpickle          3.1.0
connectorx           0.4.0
deltalake            <not installed>
fastexcel            0.12.0
fsspec               2024.10.0
gevent               24.11.1
google.auth          <not installed>
great_tables         0.14.0
matplotlib           3.9.2
nest_asyncio         1.6.0
numpy                2.1.3
openpyxl             3.1.5
pandas               2.2.3
pyarrow              18.0.0
pydantic             2.9.2
pyiceberg            <not installed>
sqlalchemy           2.0.36
torch                <not installed>
xlsx2csv             0.8.3
xlsxwriter           3.2.0
--------Version info---------
Polars:              1.13.1
Index type:          UInt32
Platform:            Windows-10-10.0.19045-SP0
Python:              3.12.7 (tags/v3.12.7:0b05ead, Oct  1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
LTS CPU:             False

----Optional dependencies----
adbc_driver_manager  1.3.0
altair               5.4.1
cloudpickle          3.1.0
connectorx           0.4.0
deltalake            <not installed>
fastexcel            0.12.0
fsspec               2024.10.0
gevent               24.11.1
great_tables         0.14.0
matplotlib           3.9.2
nest_asyncio         1.6.0
numpy                2.1.3
openpyxl             3.1.5
pandas               2.2.3
pyarrow              18.0.0
pydantic             2.9.2
pyiceberg            <not installed>
sqlalchemy           2.0.36
torch                <not installed>
xlsx2csv             0.8.3
xlsxwriter           3.2.0

@matquant14 matquant14 added bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars labels Nov 19, 2024
@matquant14 matquant14 changed the title Strings showing non-breaking space in PyCharm Jupyter Notebooks in Polars 1.14 Strings showing non-breaking space in PyCharm Jupyter Notebooks after 1.14 upgrade Nov 19, 2024
@alexander-beedie
Copy link
Collaborator

alexander-beedie commented Nov 19, 2024

This is primarily a JetBrains IDE setting rather than a Polars issue.
I believe you just need to uncheck the following option:
image
You can find it by typing "Render special" in the Settings search.

Having said that, we don't need to set &nbsp; unless there are consecutive spaces, so I'll update that on our side 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Related to Python Polars
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants