Skip to content

Commit

Permalink
Don't override kaleido's mathjax path if one was autodetected
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Feb 27, 2021
1 parent 92b8954 commit 2b66c73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/python/plotly/plotly/io/_kaleido.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
root_dir = os.path.dirname(os.path.abspath(plotly.__file__))
package_dir = os.path.join(root_dir, "package_data")
scope.plotlyjs = os.path.join(package_dir, "plotly.min.js")
scope.mathjax = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"
if scope.mathjax is None:
scope.mathjax = (
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"
)
except ImportError:
PlotlyScope = None
scope = None
Expand Down

0 comments on commit 2b66c73

Please sign in to comment.