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(
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 ,
You can’t perform that action at this time.
0 commit comments