diff --git a/packages/python/plotly/plotly/io/_orca.py b/packages/python/plotly/plotly/io/_orca.py index 055bb8e4a37..96f3ec5d6f8 100644 --- a/packages/python/plotly/plotly/io/_orca.py +++ b/packages/python/plotly/plotly/io/_orca.py @@ -1384,11 +1384,10 @@ def ensure_server(): """ ) - # Validate orca executable - if status.state == "unvalidated": - validate_executable() - if not config.server_url: + # Validate orca executable only if server_url is not provided + if status.state == "unvalidated": + validate_executable() # Acquire lock to make sure that we keep the properties of orca_state # consistent across threads with orca_lock: