File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -370,10 +370,10 @@ def to_image(
370
370
371
371
try :
372
372
kopts = {}
373
- if defaults .mathjax :
374
- kopts ["mathjax" ] = defaults .mathjax
375
373
if defaults .plotlyjs :
376
374
kopts ["plotlyjs" ] = defaults .plotlyjs
375
+ if defaults .mathjax :
376
+ kopts ["mathjax" ] = defaults .mathjax
377
377
378
378
# TODO: Refactor to make it possible to use a shared Kaleido instance here
379
379
img_bytes = kaleido .calc_fig_sync (
@@ -693,10 +693,10 @@ def write_images(
693
693
694
694
try :
695
695
kopts = {}
696
- if defaults .mathjax :
697
- kopts ["mathjax" ] = defaults .mathjax
698
696
if defaults .plotlyjs :
699
697
kopts ["plotlyjs" ] = defaults .plotlyjs
698
+ if defaults .mathjax :
699
+ kopts ["mathjax" ] = defaults .mathjax
700
700
kaleido .write_fig_from_object_sync (
701
701
kaleido_specs ,
702
702
kopts = kopts ,
You can’t perform that action at this time.
0 commit comments