Skip to content

Commit 412f533

Browse files
Merge pull request #107 from SylvainCorlay/ipywidgets-alpha-update
Update to ipywidgets 7.0.0a9
2 parents bc60487 + da983af commit 412f533

11 files changed

+18
-25
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ node_modules/
77

88
# Compiled javascript
99
pythreejs/static/
10-
pythreejs/staticlab/
1110

1211
# OS X
1312
.DS_Store

MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
recursive-include pythreejs/static *.*
2-
recursive-include pythreejs/staticlab *.*

js/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyter-threejs",
3-
"version": "0.3.0-alpha.0",
3+
"version": "0.4.0-alpha.0",
44
"description": "jupyter - threejs bridge",
55
"author": "Jupyter-Threejs development team",
66
"license": "BSD-3-Clause",
@@ -19,7 +19,7 @@
1919
"webpack": "^1.12.14"
2020
},
2121
"dependencies": {
22-
"jupyter-js-widgets": "^3.0.0-alpha.2",
22+
"@jupyter-widgets/base": "0.5.1",
2323
"ndarray": "^1.0.18",
2424
"three": "^0.75.0",
2525
"underscore": "^1.8.3"

js/src/extension.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ if (window.require) {
33
window.require.config({
44
map: {
55
"*" : {
6-
"jupyter-threejs": "nbextensions/jupyter-threejs/index",
7-
"jupyter-js-widgets": "nbextensions/jupyter-js-widgets/extension"
6+
"jupyter-threejs": "nbextensions/jupyter-threejs/index"
87
}
98
}
109
});

js/src/jupyter-threejs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
define(["jupyter-js-widgets", "underscore", "three", "ndarray"],
1+
define(["@jupyter-widgets/base", "underscore", "three", "ndarray"],
22
function(widgets, _, THREE, ndarray) {
33

44
window.THREE = THREE;

js/webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = [
2222
module: {
2323
loaders: loaders
2424
},
25-
externals: ['jupyter-js-widgets']
25+
externals: ['@jupyter-widgets/base']
2626
},
2727
{// embeddable jupyter-threejs bundle
2828
entry: './src/index.js',
@@ -35,6 +35,6 @@ module.exports = [
3535
module: {
3636
loaders: loaders
3737
},
38-
externals: ['jupyter-js-widgets']
38+
externals: ['@jupyter-widgets/base']
3939
}
4040
];

jslab/lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
var jupyter_threejs = require('jupyter-threejs');
22

3-
var jupyterlab_widgets = require('@jupyterlab/nbwidgets');
3+
var jupyterlab_widgets = require('@jupyter-widgets/jupyterlab-manager');
44

5-
module.exports.default = {
5+
module.exports = {
66
id: 'jupyter.extensions.jupyter-threejs',
77
requires: [jupyterlab_widgets.INBWidgetExtension],
88
activate: function(app, widgets) {

jslab/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "jupyterlab-threejs developers",
1010
"license": "BSD-3-Clause",
1111
"dependencies": {
12-
"@jupyterlab/nbwidgets": "^0.18.0",
12+
"@jupyter-widgets/jupyterlab-manager": "^0.23.2",
1313
"jupyter-threejs": "^0.3.0-alpha.0"
1414
},
1515
"jupyterlab": {

pythreejs/__init__.py

-6
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,3 @@ def _jupyter_nbextension_paths():
145145
'dest': npm_pkg_name,
146146
'require': npm_pkg_name + '/extension'
147147
}]
148-
149-
def _jupyter_labextension_paths():
150-
return [{
151-
'name': npm_pkg_name,
152-
'src': 'staticlab'
153-
}]

pythreejs/_version.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
version_info = (0, 3, 0)
2-
__version__ = '.'.join(map(str, version_info))
1+
version_info = (0, 4, 0, 'alpha', 0)
2+
3+
_specifier_ = {'alpha': 'a', 'beta': 'b', 'candidate': 'rc', 'final': ''}
4+
5+
__version__ = '%s.%s.%s%s'%(version_info[0], version_info[1], version_info[2],
6+
'' if version_info[3]=='final' else _specifier_[version_info[3]]+str(version_info[4]))
7+
8+
EXTENSION_VERSION = '0.4.0-alpha.0'

setup.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,8 @@ def run(self):
130130
'pythreejs/static/index.js',
131131
'pythreejs/static/index.js.map',
132132
]),
133-
('share/jupyter/labextensions/jupyter-threejs', [
134-
'pythreejs/staticlab/jupyter-threejs.bundle.js',
135-
'pythreejs/staticlab/jupyter-threejs.bundle.js.manifest',
136-
]),
137133
],
138-
'install_requires': ['ipywidgets>=7.0.0a1', 'traittypes'],
134+
'install_requires': ['ipywidgets>=7.0.0a9', 'traittypes'],
139135
'packages': find_packages(),
140136
'zip_safe': False,
141137
'cmdclass': {

0 commit comments

Comments
 (0)