-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix(docs): In the skore cross validation example, the plotly graph is not full size in the rendering #594
Comments
I get the same behaviour in |
Issues opened: sphinx-gallery/sphinx-gallery#1394; plotly/plotly.py#4828 |
Related: when the Plotly figure is shown in the example, the resulting image can't be used as the thumbnail. Using plotly images as thumbnails doesn't work yet, and the docs look like this as a result (note the big "BROKEN" image): Detailed explanationTLDR: plotly is buggy and i opened an issue Sphinx-gallery tells me to install orca in order to do this: see first few lines of https://sphinx-gallery.github.io/stable/auto_plotly_examples/plot_0_plotly.html. The new methd is to use plotly's kaleido, but when I tried to build the docs I got this: |
I didn't expect to hit so many roadblocks. Our options (feel free to contribute more):
To be completely honest, I don't think the thumbnails bring much to the docs. |
Related: plotly/Kaleido#209 |
I vote for a mix of 1 & 2: use a screenshot while this issue is fixed. And I agree that the thumbnails do not provide huge value, changing |
If you just unzoom on the page it autosizes automatically |
This is a quick fix to address #594. In the end, I took a screenshot manually (by using the "Download plot as png" button of the Plotly widget) and displayed it with matplotlib. Here are all the alternatives I considered, and what didn't work with them: - Use SVG instead of PNG - For that, I'd need to use Plotly's `fig.write_image`, and the library that Plotly uses for this, Kaleido, is currently broken: plotly/Kaleido#210 - Export plotly figure to a file during the example and read it - For that I also need Plotly's `fig.write_image` - Use Pillow for displaying, instead of matplotlib (which is not really made for that) - Only matplotlib is supported by sphinx-gallery, the library that renders the examples
This is a quick fix to address #594. In the end, I took a screenshot manually (by using the "Download plot as png" button of the Plotly widget) and displayed it with matplotlib. Here are all the alternatives I considered, and what didn't work with them: - Use SVG instead of PNG - For that, I'd need to use Plotly's `fig.write_image`, and the library that Plotly uses for this, Kaleido, is currently broken: plotly/Kaleido#210 - Export plotly figure to a file during the example and read it - For that I also need Plotly's `fig.write_image` - Use Pillow for displaying, instead of matplotlib (which is not really made for that) - Only matplotlib is supported by sphinx-gallery, the library that renders the examples
This is a quick fix to address #594. In the end, I took a screenshot manually (by using the "Download plot as png" button of the Plotly widget) and displayed it with matplotlib. Here are all the alternatives I considered, and what didn't work with them: - Use SVG instead of PNG - For that, I'd need to use Plotly's `fig.write_image`, and the library that Plotly uses for this, Kaleido, is currently broken: plotly/Kaleido#210 - Export plotly figure to a file during the example and read it - For that I also need Plotly's `fig.write_image` - Use Pillow for displaying, instead of matplotlib (which is not really made for that) - Only matplotlib is supported by sphinx-gallery, the library that renders the examples
This is a quick fix to address #594. In the end, I took a screenshot manually (by using the "Download plot as png" button of the Plotly widget) and displayed it with matplotlib. Here are all the alternatives I considered, and what didn't work with them: - Use SVG instead of PNG - For that, I'd need to use Plotly's `fig.write_image`, and the library that Plotly uses for this, Kaleido, is currently broken: plotly/Kaleido#210 - Export plotly figure to a file during the example and read it - For that I also need Plotly's `fig.write_image` - Use Pillow for displaying, instead of matplotlib (which is not really made for that) - Only matplotlib is supported by sphinx-gallery, the library that renders the examples
This is a quick fix to address #594. In the end, I took a screenshot manually (by using the "Download plot as png" button of the Plotly widget) and displayed it with matplotlib. Here are all the alternatives I considered, and what didn't work with them: - Use SVG instead of PNG - For that, I'd need to use Plotly's `fig.write_image`, and the library that Plotly uses for this, Kaleido, is currently broken: plotly/Kaleido#210 - Export plotly figure to a file during the example and read it - For that I also need Plotly's `fig.write_image` - Use Pillow for displaying, instead of matplotlib (which is not really made for that) - Only matplotlib is supported by sphinx-gallery, the library that renders the examples
No description provided.
The text was updated successfully, but these errors were encountered: