File tree Expand file tree Collapse file tree 4 files changed +55
-1
lines changed Expand file tree Collapse file tree 4 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ include js/webpack.config.js
9
9
include sage_combinat_widgets/labextension/*.tgz
10
10
11
11
# Documentation
12
+ include demo_GridViewWidget.ipynb
12
13
graft docs
13
14
exclude docs/\#*
14
15
prune docs/build
Original file line number Diff line number Diff line change 49
49
"webpack-cli" : " ^3.3.6"
50
50
},
51
51
"dependencies" : {
52
+ "@phosphor/application" : " ^1.6.0" ,
52
53
"@jupyter-widgets/base" : " ^2.0.1" ,
53
54
"@jupyter-widgets/controls" : " ^1.5.2" ,
54
55
"@types/node" : " ^12.6.9" ,
61
62
"webpack" : " ^4.39.1"
62
63
},
63
64
"jupyterlab" : {
64
- "extension" : " lib/labplugin "
65
+ "extension" : " lib/plugin "
65
66
}
66
67
}
Original file line number Diff line number Diff line change
1
+ // Copyright (c) Odile Bénassy, Nicolas Thiéry
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ import {
5
+ Application , IPlugin
6
+ } from '@phosphor/application' ;
7
+
8
+ import {
9
+ Widget
10
+ } from '@phosphor/widgets' ;
11
+
12
+ import {
13
+ IJupyterWidgetRegistry
14
+ } from '@jupyter-widgets/base' ;
15
+
16
+ import * as widgetExports from './singleton_widgets' ;
17
+
18
+ import {
19
+ MODULE_NAME , MODULE_VERSION
20
+ } from './version' ;
21
+
22
+ const EXTENSION_ID = 'sage-combinat-widgets:plugin' ;
23
+
24
+ /**
25
+ * The example plugin.
26
+ */
27
+ const sageCombinatWidgetsPlugin : IPlugin < Application < Widget > , void > = {
28
+ id : EXTENSION_ID ,
29
+ requires : [ IJupyterWidgetRegistry ] ,
30
+ activate : activateWidgetExtension ,
31
+ autoStart : true
32
+ } ;
33
+
34
+ export default sageCombinatWidgetsPlugin ;
35
+
36
+
37
+ /**
38
+ * Activate the widget extension.
39
+ */
40
+ function activateWidgetExtension ( app : Application < Widget > , registry : IJupyterWidgetRegistry ) : void {
41
+ registry . registerWidget ( {
42
+ name : MODULE_NAME ,
43
+ version : MODULE_VERSION ,
44
+ exports : widgetExports ,
45
+ } ) ;
46
+ }
Original file line number Diff line number Diff line change
1
+ [bdist_wheel]
2
+ universal =1
3
+
4
+ [metadata]
5
+ description-file = README.rst
6
+ license_file = LICENSE
You can’t perform that action at this time.
0 commit comments