Skip to content

Commit ce7386c

Browse files
authored
Merge pull request #3483 from plotly/disable-cloud-button-workspace
disable placeholder cloud button on workspace
2 parents 87d5e32 + c360b46 commit ce7386c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

dash/dash.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -937,13 +937,17 @@ def _config(self):
937937
"plotly_version": plotly_version,
938938
}
939939
if self._plotly_cloud is None:
940-
try:
941-
# pylint: disable=C0415,W0611
942-
import plotly_cloud # noqa: F401
943-
940+
if os.getenv("DASH_ENTERPRISE_ENV") == "WORKSPACE":
941+
# Disable the placeholder button on workspace.
944942
self._plotly_cloud = True
945-
except ImportError:
946-
self._plotly_cloud = False
943+
else:
944+
try:
945+
# pylint: disable=C0415,W0611
946+
import plotly_cloud # noqa: F401
947+
948+
self._plotly_cloud = True
949+
except ImportError:
950+
self._plotly_cloud = False
947951

948952
config["plotly_cloud_installed"] = self._plotly_cloud
949953
if not self.config.serve_locally:

0 commit comments

Comments
 (0)