Skip to content

Commit 0c1b1c1

Browse files
committed
format
1 parent 0413341 commit 0c1b1c1

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

plotly/io/_kaleido.py

+14-10
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,13 @@ def to_image(
372372
scale=scale or defaults.default_scale,
373373
),
374374
topojson=defaults.topojson,
375-
kopts=dict(
376-
mathjax=defaults.mathjax,
377-
)
378-
if defaults.mathjax
379-
else None,
375+
kopts=(
376+
dict(
377+
mathjax=defaults.mathjax,
378+
)
379+
if defaults.mathjax
380+
else None
381+
),
380382
)
381383
except ChromeNotFoundError:
382384
raise RuntimeError(PLOTLY_GET_CHROME_ERROR_MSG)
@@ -656,11 +658,13 @@ def write_images(
656658
try:
657659
kaleido.write_fig_from_object_sync(
658660
kaleido_specs,
659-
kopts=dict(
660-
mathjax=defaults.mathjax,
661-
)
662-
if defaults.mathjax
663-
else None,
661+
kopts=(
662+
dict(
663+
mathjax=defaults.mathjax,
664+
)
665+
if defaults.mathjax
666+
else None
667+
),
664668
)
665669
except ChromeNotFoundError:
666670
raise RuntimeError(PLOTLY_GET_CHROME_ERROR_MSG)

0 commit comments

Comments
 (0)