-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support figures that are larger than Chromium's maximum message size #19
Comments
@jonmmease transferred from Plotly.py |
Hi @Bhanuchander210, this message indicates that the size of the figure JSON bundle exceeded the maximum chromium message size. This is generally a pretty large threshold (e.g. somewhere around an 8 million point scatter plot). Could you describe the figure you are trying to export? Are you able to display it interactively? Did you ever try exporting it using the Orca? Thanks! |
Hi @jonmmease, As you mentioned, yes it is pretty large scatter plot approx (6 columns * 1696900 rows : may have nan, so number of points will vary). Are you able to display it interactively?
Did you ever try exporting it using the Orca?
It shows the following exception :
|
Thanks for the details. As it does look like a figure size issue, it's not surprising that orca fails as well since Electron is using the same Chromium engine underneath. It should be possible to work around this limitation, but it will take some redesign work to support streaming the figure specification from the C++ to the JavaScript side. Right now, we parse the input JSON in C++ and then let chromium transfer the resulting dictionary from C++ to JavaScript. We may need to transfer the figure specification in string form in chunks and then parse it into a JavaScript object at the end. |
I also get this issue with large datasets |
I am also getting this error on large plots.
Has there been any traction in chunking messages from C++ to JavaScript? Been searching all over for a workaround, but that might be the only solution for me. Are there any alternatives to get base64 data from a plotly plot for large datasets? Is there a way to chunk it on the python side? I tried pushing back and produce aggregate data for these plots, but they need to have all the data and I am stuck as we need to save to disk. Any suggestions would be greatly appreciated. |
Also experiencing this issue. I have a large figure with ~32 subplots, hopefully, there's a solution on the horizon. |
Same problem, please help |
I just updated kaleido.py to v 0.2.1 and it has resolved the issue for me. |
Agree with @Rob-Hulley, I updated kaleido and my previously non-functional example now functions. |
Same issue. Spent quite some time generating a plot with many subplots and massive data behind, can barely view it in the browser and had hoped that I could at least export it as .png :( |
Running into this issue too, however, bit of a catch22 if you use Win11 as per this issue - https://github.com/plotly/Kaleido/issues/126.. Although I can choose to render plots interactively, with many points the app becomes slow to render. Hence, this is why I export to static and render that (can't with latest data...too big). Would be great if latest version of kaleido also works in W11 and deals with this issue. |
Hi,
I am trying to export the fig using the method
I got the exception like:
How to handle this check ?
The text was updated successfully, but these errors were encountered: