question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LaTeX/MathJax broken using Firefox v82.0

See original GitHub issue

Hi Plotly team, I just recently updated my firefox browser to version 84.0.1 and have been using plotly’s (v4.14.1) subplots in Jupyter notebook (v6.0.3) with Python (v3.7.6) for a couple months now without issue. I noticed that with this new version of the browser when I call something like:

from plotly.subplots import make_subplots

fig = make_subplots(1, 3, subplot_titles=[1, 2, 3])
fig['layout'].update(width=1200, height=1200)
fig.add_trace(go.Scatter(x=[1 , 2 , 3], 
                             y=[1 , 2 , 3], 
                             name='$123$',
                            ),
                  row=1,
                  col=1
                 )

fig.add_trace(go.Scatter(x=[1 , 2 , 3], 
                         y=[1 , 2 , 3], 
                        ),
                  row=1,
                  col=2
                 )

fig.show()

The figures do not render properly and when I try to toggle the traces by clicking on the legend, all of the plots shrink and are illegible. This issue seems to be caused whenever I add Latex to the legend str using the name argument in go.Scatter while ALSO using the update command to manually set the width and height of the figure. If I do only one or the other, the behavior seems to go back to normal. It also seems to be unique to Firefox, as I did not have an issue with Chrome when I tested this with the same environment. Hoping this is enough information to create a reproducible example and solve this issue.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:16 (12 by maintainers)

github_iconTop GitHub Comments

4reactions
alexcjohnsoncommented, Jan 6, 2021

Thanks @MRScheid - confirmed with FF84 on my Mac, at for example https://plotly.github.io/LaTeX-basics/

It looks like the LaTeX renders, but has some sort of bounding box error.

1reaction
maresbcommented, May 21, 2021

Is there any known workaround, or is LaTeX in Plotly just plain broken for all recent Firefox versions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firefox quantum doesn't properly render MathJax formulas on ...
Firefox quantum doesn't properly render MathJax formulas on some websites. Is there a workaround? 4 replies; 2 have this problem; 751 views ...
Read more >
Firefox 82.0, See All New Features, Updates and Fixes - Mozilla
Release Notes tell you what's new in Firefox. ... Version 82.0, first offered to Release channel users on October 20, 2020.
Read more >
Websites look wrong or appear differently than they should
This article explains how to fix problems with websites that display incorrectly in Firefox or don't work the way they should.
Read more >
Firefox 103.0, See All New Features, Updates and Fixes
Release Notes tell you what's new in Firefox. ... Non-breaking spaces are now preserved—preventing automatic line breaks—when copying text ...
Read more >
FireFox stopped recording browsing history - any ideas?
Currently on v82.0.3. In May 2020, FireFox stopped recording visited sites. ... Read this answer in context 👍 0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found