Change default MathJax URL to v3 rather than v2#469
Merged
Conversation
Contributor
|
Could you provide some info about the sections of code that have been removed? Were those only required for MathJax v2? |
Collaborator
Author
|
@camdecoster Sure. These two are definitely no longer needed:
On the other hand, |
Collaborator
Author
|
@camdecoster Update on the config options: I added the snippet <script>MathJax = {svg: {blacker: 0}};</script>to the page template, which would be the MathJax v3 equivalent of the v2 config I removed, but I see zero visible difference in the resulting image, so I'm inclined to just leave it out. |
camdecoster
previously approved these changes
Jul 22, 2026
camdecoster
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The next major Plotly.js release will drop MathJax v2 support, so before releasing that version in Plotly.py we will need to update Kaleido to use MathJax v3 (or v4) rather than v2 by default, so that everything works smoothly together.
I've made the change to v3 in this PR, but v4 would also be reasonable IMO.