plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
Other
363 stars 36 forks source link

Loading message for MathJax is included in the output PDF file #101

Closed s417-lama closed 2 years ago

s417-lama commented 3 years ago

Environments:

Issue:

import plotly.graph_objects as go

fig = go.Figure()
fig.add_trace(go.Bar(
    x=[1, 2, 3, 4],
    y=[20, 9, 25, 16],
))
fig.write_image("test.pdf")

generates the following PDF file, which includes an unnecessary loading message for MathJax.

test.pdf

Miosss commented 3 years ago

+1 I have the same issue on Windows 10.

bgottschall commented 3 years ago

If you do not need MathJAX a temporary workaround is disabling it:

import plotly.io as pio   
pio.kaleido.scope.mathjax = None
asher-pembroke commented 2 years ago

I'm seeing the same bug.

FROM continuumio/miniconda3:latest
nicolaskruchten commented 2 years ago

Duplicated by #122 and we will follow up there.

marc-git commented 1 year ago

I'm getting this error now too. Should I open a new issue?