Skip to content

Commit 6a2dbf2

Browse files
author
minjk-bl
committed
Fix checking func/pack module
1 parent a75ff41 commit 6a2dbf2

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

js/com/com_Config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,10 @@ define([
121121
code: 'import numpy as np',
122122
type: 'package'
123123
},
124-
'numpy': {
125-
code: 'import numpy as np',
126-
type: 'package'
127-
},
128124
'pd': {
129125
code: 'import pandas as pd',
130126
type: 'package'
131127
},
132-
'pandas': {
133-
code: 'import pandas as pd',
134-
type: 'package'
135-
},
136128
'plt': {
137129
code: 'import matplotlib.pyplot as plt\n%matplotlib inline',
138130
type: 'package'

js/com/component/LibraryComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ define([
4444
vpLog.display(VP_LOG_TYPE.ERROR, 'Cannot find package id from library: ' + this.packageId);
4545
return;
4646
}
47-
this.config.checkModules = [this.package.library];
47+
this.config.checkModules = ['pd'];
4848

4949
vpLog.display(VP_LOG_TYPE.DEVELOP, 'loading state', this.state);
5050
}

js/com/component/NumpyComponent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ define([
5151
vpLog.display(VP_LOG_TYPE.ERROR, 'Cannot find package id from library: ' + this.packageId);
5252
return;
5353
}
54+
this.config.checkModules = ['np'];
5455

5556
vpLog.display(VP_LOG_TYPE.DEVELOP, 'loading state', this.state);
5657
}

0 commit comments

Comments
 (0)