Fix static plot generation issue caused by Kaleido's internet requirement #413
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This PR addresses an intermittent failure in generating static plots due to the dependency on an internet connection when using Kaleido, a Python package that converts HTML to PNG. The fix ensures that static plots can be generated offline by utilizing JSON data alongside HTML files.
Problem Description:
No static plots are saved due to some kaleido problemThe Python package Kaleido requires an internet connection to convert HTML content into PNG images. This has led to failures in generating static plots when working in environments without network access.
Solution Overview:
To resolve this issue, the following changes have been implemented:
Generate JSON Files During Plot Creation:
Utilize Plotly for Static Plot Generation from JSON Data:
Implementation Details:
Changes in Code:
Testing:
Additional Notes:
Checklist: