File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ define([
29
29
, include : [
30
30
'%matplotlib inline'
31
31
]
32
+ } ,
33
+ { i0 : 'seaborn' , i1 : 'sns' , type : 'module' } ,
34
+ {
35
+ i0 : 'plotly.express' , i1 : 'px' , type : 'module'
36
+ , include : [
37
+ 'from plotly.offline import init_notebook_mode' ,
38
+ 'init_notebook_mode(connected=True)'
39
+ ]
32
40
}
33
41
] ,
34
42
'machine-learning' : [
@@ -242,14 +250,19 @@ define([
242
250
// module
243
251
sbCode . appendFormat ( "import {0}{1}" , pacI0 , ( ( pacI1 === undefined || pacI1 === "" ) ? "" : ( " as " + pacI1 ) ) ) ;
244
252
}
245
- }
246
253
247
- // Need additional code?
248
- if ( pacI0 == 'matplotlib.pyplot' || pacI0 == 'matplotlib' ) {
249
- sbCode . appendLine ( ) ;
250
- sbCode . append ( '%matplotlib inline' ) ;
254
+ // Need additional code?
255
+ if ( pacI0 == 'matplotlib.pyplot' || pacI0 == 'matplotlib' ) {
256
+ sbCode . appendLine ( ) ;
257
+ sbCode . append ( '%matplotlib inline' ) ;
258
+ }
259
+ if ( pacI0 == 'plotly.express' || pacI0 == 'plotly' ) {
260
+ sbCode . appendLine ( ) ;
261
+ sbCode . appendLine ( 'from plotly.offline import init_notebook_mode' ) ;
262
+ sbCode . append ( 'init_notebook_mode(connected=True)' ) ;
263
+ }
251
264
}
252
-
265
+
253
266
importMeta . push ( { i0 : pacI0 , i1 : pacI1 , type : pacType , checked : pacChecked } ) ;
254
267
}
255
268
this . state . importMeta = importMeta ;
You can’t perform that action at this time.
0 commit comments