You are not logged in.
Jupyter Lab does not render MathJax equations unless I am online and allow access to cloudflare. If I am offline or block cloudflare using noscript then I just get the original markdown. Jupyter Notebook renders equations correctly offline. All packges are installed using pacman (not pip) and are up to date.
This appears to be the same issue as the bug report FS#70150 but the solution there - installing jupyter-server-mathjax - hasn't worked for me. I have tried cleaning and rebuilding Jupyter Lab without success.
The console output of Jupyter Server is:
[I 2021-09-26 21:59:51.640 ServerApp] jupyterlab | extension was successfully linked.
[I 2021-09-26 21:59:51.662 LabApp] JupyterLab extension loaded from /usr/lib/python3.9/site-packages/jupyterlab
[I 2021-09-26 21:59:51.662 LabApp] JupyterLab application directory is /usr/share/jupyter/lab
[I 2021-09-26 21:59:51.665 ServerApp] jupyterlab | extension was successfully loaded.
[I 2021-09-26 21:59:51.666 ServerApp] Serving notebooks from local directory: /home/rbaj
[I 2021-09-26 21:59:51.666 ServerApp] Jupyter Server 1.11.0 is running at:
[I 2021-09-26 21:59:51.666 ServerApp] http://localhost:8888/lab?token=a454d8d21468b58ad2ac012f36c53c645abd5036f421959c
[I 2021-09-26 21:59:51.666 ServerApp] or http://127.0.0.1:8888/lab?token=a454d8d21468b58ad2ac012f36c53c645abd5036f421959c
[I 2021-09-26 21:59:51.666 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2021-09-26 21:59:51.727 ServerApp]
To access the server, open this file in a browser:
file:///home/rbaj/.local/share/jupyter/runtime/jpserver-4416-open.html
Or copy and paste one of these URLs:
http://localhost:8888/lab?token=a454d8d21468b58ad2ac012f36c53c645abd5036f421959c
or http://127.0.0.1:8888/lab?token=a454d8d21468b58ad2ac012f36c53c645abd5036f421959c
[I 2021-09-26 21:59:55.452 LabApp] Build is up to date
[W 2021-09-26 21:59:55.840 ServerApp] Notebook test.ipynb is not trusted
[I 2021-09-26 21:59:56.048 ServerApp] Kernel started: e66e5203-bfcd-4933-9603-015c6aa868ecThanks
Last edited by rbaj (2021-09-27 20:51:49)
Offline
Indeed, the extension wasn't actually installed in the package. Should be fixed in jupyter-server-mathjax 0.2.3-2
Offline
That's fixed it, many thanks arojas.
Edit: forgot to say that I had a "Failed to commit transaction (conflicting files)" pacman error on /usr/share/jupyter/lab/static/2719.35f55731620927420659.js that I resolved by renaming the file
Last edited by rbaj (2021-09-27 20:59:36)
Offline