You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rise hardcoded mathjax version to 2.7.7 in app.py while jupyterlab4 currently uses 3.2.2.
This caused some font resources to be not loaded properly. (italic font, etc. missing which makes the latex code not render correctly.)
Changing the mathjax verion to 3.2.2 seems to fix the issue. (side effect is yet to be seen).
Reproduce
markdown input latex $$x$$.
Expected behavior
x is italic
x is not italic
Context
Python package version:
Extension version:
jupyterlab_rise-0.42.0
jupyterlab 4.0.10
jupyterlab-rise v0.42.0 enabled OK (python, jupyterlab_rise)
Operating System and its version:
ubuntu 22.04
Browser and its version:
Firefox and Chrome
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Web Browser Output
Paste the output from your browser web console here.
The text was updated successfully, but these errors were encountered:
This will print the location of its __init__.py file. Open the app.py file in the same directory and find the following part:
# TODO Remove CDN usage.mathjax_url=self.settings.get(
"mathjax_url",
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js",
)
Change the 2.7.7 to 3.2.2, save, and restart jupyter lab (if running). To figure out whether 3.2.2 is still the correct version, you can also look at schemas/@jupyterlab/mathjax-extension/package.json.orig underneath the jupyterlab_rise directory, it has a line saying "mathjax-full": "^3.2.2". (Note that modifying the installed app.py file is a hack; the canonical way would be to clone the repository, change the source code, and install from source, but then you need node.js.)
It actually looks like mathjax_url was a setting of the plugin, but it is not included in the plugin.json and can therefore not be customized. That would have avoided the need to change the source code.
The correct solution will be to either remove CDN usage (as indicated in the comment), or to introspect which mathjax version the mathjax-extension uses.
Description
rise hardcoded mathjax version to 2.7.7 in
app.py
while jupyterlab4 currently uses 3.2.2.This caused some font resources to be not loaded properly. (italic font, etc. missing which makes the latex code not render correctly.)
Changing the mathjax verion to 3.2.2 seems to fix the issue. (side effect is yet to be seen).
Reproduce
markdown input latex$$x$$ .
Expected behavior
x is italic
x is not italic
Context
Firefox and Chrome
Command Line Output
Web Browser Output
The text was updated successfully, but these errors were encountered: