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

plotly.io.to_json method does not convert large numbers correctly #5124

Open
jimholl-dev opened this issue Apr 3, 2025 · 0 comments
Open
Assignees
Labels
bug something broken P1 needed for current cycle regression this used to work

Comments

@jimholl-dev
Copy link

Hi, I have some some code here, as below (edited to remove extra logs). I'm converting a plotly figure into json, and then loading it with json loads. You would expect that to preserve the original data.

Image'

However, as you can see, the "y" data (which had previously been an array of large numbers) are wrongly converted into this "bdata" thing instead.

Image

I was able to solve this and get the data in the format I wanted by going from 6.0.1 -> 5.24.1, which was the last stable build I was using. I think this is a pretty fundamental issue, so let me know if there's anything else I can share.

@gvwilson gvwilson changed the title Issue: plotly.io.to_json method not converting large numbers correctly. plotly.io.to_json method does not convert large numbers correctly Apr 8, 2025
@gvwilson gvwilson added bug something broken P1 needed for current cycle regression this used to work labels Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P1 needed for current cycle regression this used to work
Projects
None yet
Development

No branches or pull requests

3 participants