-
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
Plotly not rendering in sphinx #145
Comments
It looks like that changing the plotly renderer to "png" will make the plots visible on readthedocs pages. fig.show(renderer="png") for single plot. There should be way to set the default for whole notebook. |
That would work! If you want plotly (which I think would be nice, see this: https://myst-nb.readthedocs.io/en/latest/render/interactive.html#plotly - it is actually still interactive), I got it working with sphinx-book-theme (and maybe one other thing, I forget now. It might have been downgrading mathjax, see the first warning that is here: https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax . Or maybe it was using myst-parser... How much would you value plotly showing up? Overall, sphinx_rtd_theme is starting to show its age and hasn't been updated as often as I would like. It's not too bad yet, but it wouldn't be too bad to find a replacement. |
OK, this is what makes interactive plotly plots work:,
... and it works with sphinx_rtd_theme. |
I found this that implied the problem was related to sphinx_rtd_theme:
readthedocs/sphinx_rtd_theme#788
or maybe this in Sphinx: sphinx-doc/sphinx#9563
The first one says it is fixed, but we use the latest version but it still doesn't work. I'll keep investigating and use this to track.
One thing I'll try is using a different theme.
The text was updated successfully, but these errors were encountered: