File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ def to_image(
157
157
if kaleido_major > 0 :
158
158
# Kaleido v1
159
159
# Check if trying to export to EPS format, which is not supported in Kaleido v1
160
- if format == ' eps' :
160
+ if format == " eps" :
161
161
raise ValueError (
162
162
"""
163
163
EPS export is not supported with Kaleido v1.
@@ -288,9 +288,7 @@ def write_image(
288
288
289
289
>>> import plotly.io as pio
290
290
>>> pio.write_image(fig, file_path, format='png')
291
- """ .format (
292
- file = file
293
- )
291
+ """ .format (file = file )
294
292
)
295
293
296
294
# Request image
@@ -319,9 +317,7 @@ def write_image(
319
317
raise ValueError (
320
318
"""
321
319
The 'file' argument '{file}' is not a string, pathlib.Path object, or file descriptor.
322
- """ .format (
323
- file = file
324
- )
320
+ """ .format (file = file )
325
321
)
326
322
else :
327
323
# We previously succeeded in interpreting `file` as a pathlib object.
You can’t perform that action at this time.
0 commit comments