Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Plotly plots not showing in sphinx_rtd_theme #788
Plotly plots show (both locally and remotely) when using Alabaster just fine, but they don't show at all when using sphinx_rtd_theme.
Interestingly, the web developer console shows nothing with Alabaster, but with rtd_sphinx_theme shows a bunch of errors:
Plots should show regardless of the theme.
Commenting out this line brings Plotly back to life:
And, looking at
Notice that Plotly needs
Therefore I tried something crazy:
And now everything works like a charm.
Using Google Chrome, one thing that I found is that
Both themes load the same version of
I'm not sure, but I think what it's overlapping here is
And... it seems to be a known issue: https://stackoverflow.com/a/25586213. They say that the solution could be to use
There are more context about this on a issue on Browserify repo: browserify/browserify#790
It seems this is a potential good reason about why this is failing on Read the Docs Sphinx (BTW, alabaster does not include any JS at all).