Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7047c7c

Browse files
committed
cleanup
1 parent b517903 commit 7047c7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎plotly/io/_kaleido.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,10 @@ def to_image(
370370

371371
try:
372372
kopts = {}
373-
if defaults.mathjax:
374-
kopts["mathjax"] = defaults.mathjax
375373
if defaults.plotlyjs:
376374
kopts["plotlyjs"] = defaults.plotlyjs
375+
if defaults.mathjax:
376+
kopts["mathjax"] = defaults.mathjax
377377

378378
# TODO: Refactor to make it possible to use a shared Kaleido instance here
379379
img_bytes = kaleido.calc_fig_sync(
@@ -693,10 +693,10 @@ def write_images(
693693

694694
try:
695695
kopts = {}
696-
if defaults.mathjax:
697-
kopts["mathjax"] = defaults.mathjax
698696
if defaults.plotlyjs:
699697
kopts["plotlyjs"] = defaults.plotlyjs
698+
if defaults.mathjax:
699+
kopts["mathjax"] = defaults.mathjax
700700
kaleido.write_fig_from_object_sync(
701701
kaleido_specs,
702702
kopts=kopts,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /