thclark / sphinx-charts

Interactive charts in sphinx HTML docs, using plot.ly and D3
MIT License
27 stars 3 forks source link

Latex labels work intermittently - Mathjax invocation still hinky #4

Open thclark opened 4 years ago

thclark commented 4 years ago

If plotly renders the figures before mathjax's configuration has run correctly, latex labels don't get rendered.

Solution will be to hook the invocation of plotly (in charts.js) to the startup hook of mathjax like in this answer so we can be certain pmathjax is available.

As a bonus that allows us to get rid of the duplicate script annoyance here

klunkean commented 2 years ago

Is there a workaround for this?

thclark commented 2 years ago

not yet, but I definitely will accept a PR that fixes it, because I'm still having it pop up too!

thclark commented 2 years ago

I think this might be fixed by the addition of the extension in 0.1.0 - need to check.