You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The 'engine' parameter is deprecated and will be removed in a future version.",
100
+
f"DeprecationWarning: The 'engine' argument is deprecated. Kaleido will be the only supported engine after {ENGINE_SUPPORT_TIMELINE}.",
99
101
DeprecationWarning,
100
102
)
101
103
engine="auto"
@@ -118,8 +120,8 @@ def to_image(
118
120
119
121
ifengine=="orca":
120
122
warnings.warn(
121
-
"Support for the 'orca' engine is deprecated and will be removed in a future version. "
122
-
"Please use the 'kaleido' engine instead.",
123
+
f"Support for the orca engine is deprecated and will be removed after {ENGINE_SUPPORT_TIMELINE}. "
124
+
+"Please install Kaleido (`pip install kaleido`) to use the Kaleido engine.",
123
125
DeprecationWarning,
124
126
)
125
127
# Fall back to legacy orca image export path
@@ -178,8 +180,7 @@ def to_image(
178
180
else:
179
181
# Kaleido v0
180
182
warnings.warn(
181
-
"Support for kaleido v0 is deprecated and will be removed in a future version. "
182
-
"Please upgrade to kaleido v1 by running `pip install kaleido>=1.0.0`.",
183
+
f"Support for Kaleido versions less than 1.0.0 is deprecated and will be removed after {ENGINE_SUPPORT_TIMELINE}. Please upgrade Kaleido to version 1.0.0 or greater (`pip install --upgrade kaleido`).",
183
184
DeprecationWarning,
184
185
)
185
186
img_bytes=scope.transform(
@@ -288,7 +289,9 @@ def write_image(
288
289
289
290
>>> import plotly.io as pio
290
291
>>> pio.write_image(fig, file_path, format='png')
291
-
""".format(file=file)
292
+
""".format(
293
+
file=file
294
+
)
292
295
)
293
296
294
297
# Request image
@@ -317,7 +320,9 @@ def write_image(
317
320
raiseValueError(
318
321
"""
319
322
The 'file' argument '{file}' is not a string, pathlib.Path object, or file descriptor.
320
-
""".format(file=file)
323
+
""".format(
324
+
file=file
325
+
)
321
326
)
322
327
else:
323
328
# We previously succeeded in interpreting `file` as a pathlib object.
"Support for kaleido v0 is deprecated and will be removed in a future version. "
384
-
"Please upgrade to kaleido v1 by running `pip install kaleido>=1.0.0`.",
388
+
f"Support for Kaleido versions less than 1.0.0 is deprecated and will be removed after {ENGINE_SUPPORT_TIMELINE}. Please upgrade Kaleido to version 1.0.0 or greater (`pip install --upgrade kaleido`).",
0 commit comments