Skip to content
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

Latex example does not work in solara 1.17.5 #175

Closed
kolibril13 opened this issue Jun 25, 2023 · 6 comments · Fixed by #480
Closed

Latex example does not work in solara 1.17.5 #175

kolibril13 opened this issue Jun 25, 2023 · 6 comments · Fixed by #480
Labels
bug Something isn't working

Comments

@kolibril13
Copy link

I have a small bug to report:
I've just tried to copy+paste this latex example https://solara.dev/api/markdown, but it does not seem to work on the latest Solana version:
image

@maartenbreddels maartenbreddels added the bug Something isn't working label Jun 26, 2023
@maartenbreddels
Copy link
Contributor

Thanks for the report,

Weird thing is that after running:

from IPython.display import Math
Math(data='E \sim mc^2')

It does work, which means that window.MathJax is only available after some mathjax extensions/bundle/chunk is loaded in the notebook.

@kolibril13
Copy link
Author

Indeed, that's weird, your example also works on my machine.
Don't know if you know about https://katex.org/, maybe that's an alternative.

@maartenbreddels
Copy link
Contributor

Yes, but I prefer to stay close to ipywidgets/jupyter, which uses mathjax.

@maartenbreddels
Copy link
Contributor

or do you see strong reasons to switch, and do you know if it is compatible?

@kolibril13
Copy link
Author

I recently read an article that mentioned katex as alternative fast latex renderer.
But I see that it makes total sense to stay with the ipywidgets default mathjax option.

@iisakkirotko
Copy link
Collaborator

Hi! Just to update the conversation here as well, it seems like jupyter-widgets/ipywidgets#3847 fixes this issue in ipywidgets, so perhaps we can continue developing on their success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants