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

cannot display character character in static image #157

Open
williamay53 opened this issue Feb 2, 2023 · 6 comments
Open

cannot display character character in static image #157

williamay53 opened this issue Feb 2, 2023 · 6 comments
Labels
bug something broken P3 not needed for current cycle

Comments

@williamay53
Copy link

Hi,

I find that I cannot write chinese character in static image, e.g. I have the following code:

`import plotly.express as px

df = px.data.gapminder().query("country=='Canada'")
fig = px.line(df, x="year", y="lifeExp", title="測試")
fig.write_image('test_chinese_character.png')`

the result is as follows:

test_chinese_character

@williamay53
Copy link
Author

I am using ubuntu 22.04.1 LTS, python3, plotly v5.10.0 and kaleido v0.2.1

@Jaorow
Copy link

Jaorow commented Feb 15, 2024

@williamay53 any solution found?
I am having the same error with plotty 5.18.0 and this line:

plotly.io.write_image(fig, temp_file+"/t.png", format="png")

@DCRcoder
Copy link

DCRcoder commented Mar 8, 2024

i got same problem. is there some solution about it.

@williamay53
Copy link
Author

I am using ubuntu, I install language pack using the following command to solve

sudo apt-get install language-pack-zh*
sudo apt-get install chinese*

@gvwilson gvwilson self-assigned this Jul 26, 2024
@gvwilson
Copy link
Collaborator

Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson

@gvwilson gvwilson removed their assignment Aug 3, 2024
@gvwilson gvwilson added bug something broken P3 not needed for current cycle labels Aug 14, 2024
@dkettchen
Copy link

dkettchen commented Sep 14, 2024

having this same issue with exporting a table containing japanese characters, looking forward to the solution (may try williamay53's installing language packages solution later for now 🙌 edit: tried installing japanese language packs, didn't fix it, still just showing up as boxes 😐)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

5 participants