We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87d5e32 + c360b46 commit ce7386cCopy full SHA for ce7386c
dash/dash.py
@@ -937,13 +937,17 @@ def _config(self):
937
"plotly_version": plotly_version,
938
}
939
if self._plotly_cloud is None:
940
- try:
941
- # pylint: disable=C0415,W0611
942
- import plotly_cloud # noqa: F401
943
-
+ if os.getenv("DASH_ENTERPRISE_ENV") == "WORKSPACE":
+ # Disable the placeholder button on workspace.
944
self._plotly_cloud = True
945
- except ImportError:
946
- self._plotly_cloud = False
+ else:
+ try:
+ # pylint: disable=C0415,W0611
+ import plotly_cloud # noqa: F401
947
+
948
+ self._plotly_cloud = True
949
+ except ImportError:
950
+ self._plotly_cloud = False
951
952
config["plotly_cloud_installed"] = self._plotly_cloud
953
if not self.config.serve_locally:
0 commit comments