-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Mathjax.Hub.config
used for plotly 5.7.0
#3696
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
Comments
@alexcjohnson @archmoj can you take a look plz? |
You must check the version of MathJax to be v2 e.g. here if (window.MathJax && (window.MathJax.version || '').split('.')[0] === '2') {MathJax.Hub.Config({SVG: {font: "STIX-Web"}});} |
@archmoj let's add this to the queue for after the coming plotly.js release, see if you can figure out the equivalent command to switch to when we detect v3. @AakashGfude thanks for the report! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could not find a duplicate of this issue anywhere so, not sure if anyone else had an issue like this, but when using
plotly
in a sphinx project and creating HTML pages, I get the following js code included in my HTML page:When I have a math block in the same page as a plotly graph, then
window.MathJax
is defined andMathJax.Hub.Config
gets called. Which throws an error as I am using mathjax v3, which is supported by v5.7.0.The line
MathJax.Hub.Config({SVG: {font: "STIX-Web"}})
I see written in a bunch of files like:https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/io/_base_renderers.py#L240
Is it a legit issue?
The text was updated successfully, but these errors were encountered: