-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unreliable LaTeX equation rendering #3
Comments
I actually don't have much of a theory, unfortunately. When the notebook loads, we looks through the cells for math to be typeset and then run the MathJax typesetter on those elements. 0.3.3 added an observer that will properly do this when you add new markdown cells to the notebook. But I'm not sure why it would be so intermittent for you :(. If you can narrow it down or share a notebook when you have it in a state that reproduces it, I could use that to see if I could reproduce the issue (which would make it much easier to fix). In addition, there could be error in the browser console (e.g. a javascript error) that could be helpful- the next time you see a failure to typeset could you check that (under your browser developer tools)? |
I think I found an example of a cell that refuses to render. It is in the section "time domain statistics" (the notebook is inside the zip) Miniforge console does not show any noticeable errors |
I will keep on trying. I will check to see if it is related to the enviroment, or something that has been left in a weird state. Thanks a lot for your time! P.D. 1: I have tried in a fresh environment and the markdown cells seem to be working, but I get the same issues when I use display(Math()) or display(Markdown()). It is under the first "SEPARATOR" section P.D. 3: I am having issues rendering this notebook on the fresh environment: P.D. 4: Launching jupyterlab showed this
P.D. 5. The issues are back with 0issues.ipynb :( I will add some details abut my tests:
|
I have the same problem. |
I have uninstalled quarto (which I installed to see if it was useful; for me, not really) since it stopped me rendering matrix equations in markdown. This, for example, the first in a sequence of pmatrices: rendered up to the last double dollar, which it rendered as a double dollar, but then continued for the rest of the document as if the display math-mode was not closed with the text running off the page. This was in an md file, and I was using the jupyterlab preview function. By the way, the parentheses on the preview tab here don't properly render, but just give normal-sized rather than the extended form. The mathjax latex rendering github uses, doesn't seem correct. I have used mathjax in the past to render and didn't seem to have a problem. |
I've been tying the extension, and it works great for the most part, but I am having issues with LaTeX expressions: sometimes they are not rendered or they are not correctly rendered.
When they do not render (they do not seem to be recognized by mathjax), there are some things that may be clues of what is happening:
When they do not render correctly, a right click > math settings > restore defaults allows the equations to be properly visualized
Broken
![image](https://private-user-images.githubusercontent.com/28223797/302034890-35ad232a-ff3e-4575-a17a-1af5c199e2f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzcyNTksIm5iZiI6MTczOTQ3Njk1OSwicGF0aCI6Ii8yODIyMzc5Ny8zMDIwMzQ4OTAtMzVhZDIzMmEtZmYzZS00NTc1LWExN2EtMWFmNWMxOTllMmY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDIwMDIzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk1N2Q2YzdmMzljMzkxMmUzNDJlOTViNGNlZTgxMjVhOGMyMzM2YTRmNDM2NWI2OWIyYmJlYWRiMDk2ODE2OWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-LJqRWVQcOq09FWuyIWkKeRZqQ8cEBUnW-O5ZVVB2d8)
Re-rendered:
![image](https://private-user-images.githubusercontent.com/28223797/302034921-34a2def8-a7e0-410a-a01b-f1d6b3e0fa37.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzcyNTksIm5iZiI6MTczOTQ3Njk1OSwicGF0aCI6Ii8yODIyMzc5Ny8zMDIwMzQ5MjEtMzRhMmRlZjgtYTdlMC00MTBhLWEwMWItZjFkNmIzZTBmYTM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDIwMDIzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThkMmVkYjQyMjlmOTVmN2RiNzJjYzM5YTQ2ZGNjMDI2MDViZmE3YzZhNjEyMGYzNWEyOGFiYTdmNDVkM2RhNWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lE_sbtp9CrVJxH3zEA6Cq-TCY9ZzklhUxA9E24vyiLg)
The text was updated successfully, but these errors were encountered: