-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can I use fig.show()? #1
Comments
Since I have plotly's class MyClass:
...
def _repr_html_(self):
return plotly.io.to_html(self.figure, full_html=False) # (self.figure is a plotly Figure) and then
works well as a workaround without needing the plotly custom scraper, for anyone who might read this. However, I still would prefer that |
I just realised that |
Hi!
I want to use
sphinx-gallery
to document a package that uses plotly as the visualization tool. As in this repo, I used the custom image scrapper, but I wonder why it does not capture the output ofand you have to do
Or is it just me that I have the problem?
The reason I'd like the first one to work is because it feels weird to write an example with
plotly.io.show(fig)
, since nobody is going to actually use this in "real life".Thank you!
The text was updated successfully, but these errors were encountered: