File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ async function requestDashVersionInfo(config) {
24
24
dash_version : currentDashVersion ,
25
25
dash_version_url : dashVersionUrl ,
26
26
python_version : pythonVersion ,
27
- ddk_version : ddkVersion
27
+ ddk_version : ddkVersion ,
28
+ plotly_version : plotlyVersion
28
29
} = config ;
29
30
const cachedVersionInfo = localStorage . getItem ( 'cachedNewDashVersion' ) ;
30
31
const cachedNewDashVersionLink = localStorage . getItem (
@@ -46,7 +47,8 @@ async function requestDashVersionInfo(config) {
46
47
body : JSON . stringify ( {
47
48
dash_version : currentDashVersion ,
48
49
python_version : pythonVersion ,
49
- ddk_version : ddkVersion
50
+ ddk_version : ddkVersion ,
51
+ plotly_version : plotlyVersion
50
52
} ) ,
51
53
headers : {
52
54
'Content-Type' : 'application/json'
Original file line number Diff line number Diff line change 85
85
except ImportError :
86
86
pass
87
87
88
+ plotly_version = None
89
+ try :
90
+ import plotly
91
+
92
+ plotly_version = plotly .__version__
93
+ except ImportError :
94
+ pass
95
+
88
96
# Add explicit mapping for map files
89
97
mimetypes .add_type ("application/json" , ".map" , True )
90
98
@@ -780,6 +788,7 @@ def _config(self):
780
788
"python_version" : sys .version ,
781
789
"dash_version_url" : DASH_VERSION_URL ,
782
790
"ddk_version" : dash_design_kit_version ,
791
+ "plotly_version" : plotly_version ,
783
792
}
784
793
if not self .config .serve_locally :
785
794
config ["plotlyjs_url" ] = self ._plotlyjs_url
You can’t perform that action at this time.
0 commit comments