File tree Expand file tree Collapse file tree 5 files changed +40
-1
lines changed Expand file tree Collapse file tree 5 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ node_modules/
7
7
8
8
# Compiled javascript
9
9
pythreejs /static /
10
+ pythreejs /staticlab /
10
11
11
12
# OS X
12
13
.DS_Store
Original file line number Diff line number Diff line change 15
15
},
16
16
"devDependencies" : {
17
17
"json-loader" : " ^0.5.4" ,
18
+ "jupyterlab-extension-builder" : " ^0.6.2" ,
18
19
"rimraf" : " ^2.4.1" ,
19
20
"webpack" : " ^1.12.14"
20
21
},
21
22
"dependencies" : {
22
23
"jquery" : " ^2.1.4" ,
23
- "jupyter-js-widgets" : " ^1.0.0" ,
24
+ "jupyter-js-widgets" : " ^2.0.0-dev.21" ,
25
+ "jupyterlab" : " ^0.3.0" ,
26
+ "jupyterlab_widgets" : " ^0.2.2" ,
24
27
"three" : " ^0.75.0" ,
25
28
"underscore" : " ^1.8.3"
26
29
}
Original file line number Diff line number Diff line change
1
+ var jupyter_threejs = require ( './index' ) ;
2
+
3
+ var jupyterlab_widgets = require ( 'jupyterlab_widgets/lib/plugin' ) ;
4
+
5
+ module . exports = {
6
+ id : 'jupyter.extensions.jupyter-threejs' ,
7
+ requires : [ jupyterlab_widgets . IIPyWidgetExtension ] ,
8
+ activate : function ( app , widgets ) {
9
+ widgets . registerWidget ( {
10
+ name : 'jupyter-threejs' ,
11
+ version : jupyter_threejs . version ,
12
+ exports : jupyter_threejs
13
+ } ) ;
14
+ } ,
15
+ autoStart : true
16
+ } ;
Original file line number Diff line number Diff line change @@ -2,6 +2,19 @@ var loaders = [
2
2
{ test : / \. j s o n $ / , loader : "json-loader" } ,
3
3
] ;
4
4
5
+ var buildExtension = require ( 'jupyterlab-extension-builder/lib/builder' ) . buildExtension ;
6
+
7
+ buildExtension ( {
8
+ name : 'jupyter-threejs' ,
9
+ entry : './src/labplugin' ,
10
+ outputDir : '../pythreejs/staticlab' ,
11
+ config : {
12
+ module : {
13
+ loaders : [ ]
14
+ }
15
+ }
16
+ } ) ;
17
+
5
18
module . exports = [
6
19
{ // Notebook extension
7
20
entry : './src/extension.js' ,
Original file line number Diff line number Diff line change @@ -143,3 +143,9 @@ def _jupyter_nbextension_paths():
143
143
'dest' : npm_pkg_name ,
144
144
'require' : npm_pkg_name + '/extension'
145
145
}]
146
+
147
+ def _jupyter_labextension_paths ():
148
+ return [{
149
+ 'name' : npm_pkg_name ,
150
+ 'src' : 'staticlab'
151
+ }]
You can’t perform that action at this time.
0 commit comments