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 03979d1 commit 92b8954Copy full SHA for 92b8954
packages/python/plotly/plotly/io/_kaleido.py
@@ -92,9 +92,19 @@ def to_image(
92
# -------------
93
if engine == "auto":
94
if scope is not None:
95
+ # Default to kaleido if available
96
engine = "kaleido"
97
else:
- engine = "orca"
98
+ # See if orca is available
99
+ from ._orca import validate_executable
100
+
101
+ try:
102
+ validate_executable()
103
+ engine = "orca"
104
+ except:
105
+ # If orca not configured properly, make sure we display the error
106
+ # message advising the installation of kaleido
107
+ engine = "kaleido"
108
109
if engine == "orca":
110
# Fall back to legacy orca image export path
0 commit comments