diff --git a/dash/dash.py b/dash/dash.py index b52dec08f0..2d5e8f42f1 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -937,13 +937,17 @@ def _config(self): "plotly_version": plotly_version, } if self._plotly_cloud is None: - try: - # pylint: disable=C0415,W0611 - import plotly_cloud # noqa: F401 - + if os.getenv("DASH_ENTERPRISE_ENV") == "WORKSPACE": + # Disable the placeholder button on workspace. self._plotly_cloud = True - except ImportError: - self._plotly_cloud = False + else: + try: + # pylint: disable=C0415,W0611 + import plotly_cloud # noqa: F401 + + self._plotly_cloud = True + except ImportError: + self._plotly_cloud = False config["plotly_cloud_installed"] = self._plotly_cloud if not self.config.serve_locally: