-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
No latex display in the notebook when offline #36914
Comments
I cannot reproduce this with 10.3.beta6 on mac. Is it only on Ubuntu? |
Thanks for the feedback.
I cannot say. I've tested it on 2 computers both running Ubuntu 22.04. I'll send a query for further tests on sage-devel. |
Here is the post: |
Another data point: there is no error message in the console from which |
For reference, I copy here an extract of https://groups.google.com/g/sage-devel/c/sSBryLVqQk4/m/xepfECrvAQAJ
|
For reference, the post on Jupyter forum: |
"blocker" label is getting overloaded too much. Let's use "blocker" only for PRs and use "critical" for issues. |
I think this is due to sticking with MathJax-2 rather than moving to MathJax-3 (well, in the latter case you have non-wrapped, although scroll-able, long formlae). Jupyterlab ships with a copy of MathJax-3, so installing mathjax2 overrides it (but breaks off-line working). |
Some relevant places in the code
|
Could someone please check whether this workaround works? |
I checked it works. As expected, with
does not work. Perhaps this should also be noted in the release tour. |
Thanks a lot for checking. |
This should not be a "workaround", there should be user's choice what mathjax, or, moreover, what jupyter to use with Sage. |
A user already has choices. No one prevents users from using system jupyter. What do you mean? |
I mean that we should not saddle the user with a particular Jupyter installation at all. |
./sage -pip uninstall jupyterlab-mathjax2 Over Win11, WSL Ubuntu 22.04 But if you use Just to be aware, for me I am happy to see the help is working. |
In
|
On which side the LaTeX fonts matter? on the remote side (WSL), or on the local (Windows). Locally one can try different clients, e.g. VSCode has nice Jupyter support |
That what i used On the Win11 side, I have no latex installed in Win11, I use Scientific Workplace 5.5 for Latex Win11. Sorry, this is a little summary of WSL problems as far as i have gone through. Last Monday, for the first time in 5 years, i downloaded and compiled Sage without |
Putting WSL aside for a while, do you get LaTeX in notebooks (say, just Python) running on your Windows Jupyter? |
~/sage-10.4.beta9/sage --notebook jupyterlab --no-browser %display latex yes it works without problems |
So it does work, contrary to what you wrote above? And what exactly does not work, if anything? |
The Help System If you use But if you use Sorry for the confusion |
Steps To Reproduce
With Sage 10.3.beta2 running on a computer that is offline (not connected to internet), open a new Jupyter notebook with
sage -n
and type the following code:Expected Behavior
The output should be a typeset formula.
Actual Behavior
The output is raw latex:
Additional Information
There is no such issue with Sage 10.2. It is most likely due to the Notebook upgrade performed in #36129
Environment
Checklist
The text was updated successfully, but these errors were encountered: