Configuring Thebe to use MathJax version 3 #39
-
|
Hi! We are having problems when displaying math in ipywidgets because Thebe is configured to use MathJax version 2.7.5, while the rest of the book is using version 3.2.2. This seems to override the global MathJax object when Thebe is trying to typeset (through ipython.display(ipython.display.HTML()). How can we configure the book to tell Thebe to use MathJax version 3 instead of version 2. We've tried adding |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
|
@DianaBanta , would you know how to do this? |
Beta Was this translation helpful? Give feedback.
-
|
out of curiosity, is it the same issue that is happening on this page? |
Beta Was this translation helpful? Give feedback.
-
|
I see that you are using our Sphinx-Thebe package that is stored on GitLab: https://github.com/jorgengaldal/teachbooks-test/blob/main/requirements.txt#L10 We have since moved it over to GitHub (we should be able to notify users about this soon via our mailing list, consider signing up if you have not already). The package will be shared as a sphinx extension and for now the repo is here: https://github.com/TeachBooks/Sphinx-Thebe So the solution I am wondering about is if you create a fork of https://github.com/TeachBooks/Sphinx-Thebe and are able to change the MathJax stuff there, then adapt your |
Beta Was this translation helpful? Give feedback.
Changing the config in the forked version of Sphinx-Thebe worked. Thank you!