diff --git a/plotly/io/_orca.py b/plotly/io/_orca.py index 95b7724631f..d51e5ed6b6d 100644 --- a/plotly/io/_orca.py +++ b/plotly/io/_orca.py @@ -9,6 +9,7 @@ import threading import warnings from copy import copy +from contextlib import contextmanager import requests import retrying @@ -836,6 +837,36 @@ def __repr__(self): del OrcaStatus +@contextmanager +def orca_env(): + """ + Context manager to clear and restore environment variables that are + problematic for orca to function properly + + NODE_OPTIONS: When this variable is set, orca