After reinstall of Plotly I can't save html files

I had problems in an other notebook so I reinstalled Plotly in Anaconda. Now I want to save a figure into a HTML file and get the following error.

'charmap' codec can't encode character '\u25c4' in position 276398: character maps to <undefined>

Example:

fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
fig.show()
fig.write_html("test.html")

Exporting HTML worked fine before I did the reinstall. Could you helo me with that problem?

Edit: Can be closed, did a reinstall of anaconda and it works now.

1 Like

I have this issue as well and I don’t use Anaconda. I’m working with Plotly==5.12.

Hello @lolzy,

Welcome to the community!

Have you tried reinstalling it? If that doesn’t work, how about uninstalling and then installing?

Pardon, I didn’t mention that I had tried that. What worked for me was reverting back to Plotly==5.11.

1 Like

Glad you got something to work, and thank you for posting back on the forums. :slight_smile: