-
-
Couldn't load subscription status.
- Fork 2.7k
add optionial gzip compression in html export #3117
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
Conversation
Exporting big 3d meshes resulted in huge files since the data is stored as plain text in the html file. By storing the data in compressed base64 the file size can be reduced by 85%. Reduction Examples: 96.8mb to 15.4mb 42.2mb to 2.7mb 27.6mb to 6.8mb
Thanks for this pull request! We will try to review it in the coming month for inclusion in the upcoming v5.0 of this library :)
Sorry for the delay in reviewing this... I'm a bit hesitant to accept this PR because it adds a dependency on another Javascript library which tends to add maintenance work as security vulnerabilities are found etc etc. We're looking at ways to encode large numerical arrays as base64-encoded binary data soon, which should go a long way towards reducing file sizes in cases like the above, without needing to ungzip in the browser like this.
Closing long-time open PRs...
Uh oh!
There was an error while loading. Please reload this page.
Exporting big 3d meshes resulted in huge files since the data is stored as plain text in the html file. By storing the data in compressed base64 the file size can be reduced by 85%.
Reduction Examples:
96.8mb to 15.4mb
42.2mb to 2.7mb
27.6mb to 6.8mb
Code PR
plotly.graph_objects, my modifications concern thecodegenfiles and not generated files.modified existing tests.
new tutorial notebook (please see the doc checklist as well).