Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down