Skip to content

Commit 2b66c73

Browse files
committed
Don't override kaleido's mathjax path if one was autodetected
1 parent 92b8954 commit 2b66c73

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: packages/python/plotly/plotly/io/_kaleido.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
root_dir = os.path.dirname(os.path.abspath(plotly.__file__))
1515
package_dir = os.path.join(root_dir, "package_data")
1616
scope.plotlyjs = os.path.join(package_dir, "plotly.min.js")
17-
scope.mathjax = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"
17+
if scope.mathjax is None:
18+
scope.mathjax = (
19+
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"
20+
)
1821
except ImportError:
1922
PlotlyScope = None
2023
scope = None

0 commit comments

Comments
 (0)