Mathjax & Plotly

259 views
Skip to first unread message

Andrei Aleksandrov

unread,
May 31, 2023, 10:44:05 AM5/31/23
to MathJax Users
How can I use mathjax for using latex in plotly?
Official tutotail says that mathjax should be loaded in the environment where figures are being rendered, but for it is not clear. I installed mathjax, but lateh still does not works.
Im working in the VS Code.

Davide Cervone

unread,
Jun 16, 2023, 10:04:08 AM6/16/23
to mathja...@googlegroups.com
I don't know anything about Plotly, but a google search reveals


that might help.  The answer that suggests using setInterval() is not a good one, but the others might be useful.

> mathjax should be loaded in the environment where figures are being rendered

I suspect that that means you need to include a <script> tag that loads MathJax into the web page where your plotly figures are to be presented.  See


for example, and the other documentation related to that.

Hope that helps.

Davide


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/935c6087-d4a3-4742-ae77-126d5978099en%40googlegroups.com.

Andrei Aleksandrov

unread,
Jun 20, 2023, 10:53:53 AM6/20/23
to MathJax Users
I found out that Latex doesn't work properly only on VSCode\jupyther\plotly combination. If I chage only one component of that key (for example,  VSCode\python\plotly or Jupyter Notebook\jupyther \plotly) it works fine. I don't know waht's the problem.

пятница, 16 июня 2023 г. в 17:04:08 UTC+3, Davide Cervone:

Davide Cervone

unread,
Jun 20, 2023, 1:52:37 PM6/20/23
to mathja...@googlegroups.com
I believe that Jupyter loads its own copy of MathJax, so there might be a conflict between that and your own usage.  You might look in the browser and see if it looks like two separate copies of MathJax are being loaded.

Davide


Reply all
Reply to author
Forward
0 new messages