We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9c8af commit 60bb748Copy full SHA for 60bb748
plotly/io/_kaleido.py
@@ -107,20 +107,15 @@ def to_image(
107
# Request image bytes
108
if kaleido_major > 0:
109
# Kaleido v1
110
- opts = {
111
- k: v
112
- for k, v in dict(
+ img_bytes = kaleido.calc_fig_sync(
+ fig_dict,
+ path=None,
113
+ opts=dict(
114
format=format,
115
width=width,
116
height=height,
117
scale=scale,
- ).items()
118
- if v is not None
119
- }
120
- img_bytes = kaleido.calc_fig_sync(
121
- fig_dict,
122
- path=None,
123
- opts=opts,
+ ),
124
)
125
else:
126
# Kaleido v0
0 commit comments