Skip to content

Commit cff51c9

Browse files
committed
Merge branch 'master' into auto-gen-wrappers
2 parents 99ff737 + 412f533 commit cff51c9

File tree

9 files changed

+49
-13
lines changed

9 files changed

+49
-13
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ node_modules/
99

1010
# Compiled javascript
1111
pythreejs/static/
12-
pythreejs/staticlab/
1312

1413
# OS X
1514
.DS_Store

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
recursive-include pythreejs/static *.*
2-
recursive-include pythreejs/staticlab *.*

js/package.json

Lines changed: 2 additions & 2 deletions
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",
@@ -27,7 +27,7 @@
2727
"webpack": "^1.12.14"
2828
},
2929
"dependencies": {
30-
"@jupyter-widgets/base": "^0.2.0",
30+
"@jupyter-widgets/base": "0.5.1",
3131
"ndarray": "^1.0.18",
3232
"three": "^0.85.2",
3333
"underscore": "^1.8.3"

js/src/extension.js

Lines changed: 1 addition & 2 deletions
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-widgets/base": "nbextensions/jupyter-widgets/extension"
6+
"jupyter-threejs": "nbextensions/jupyter-threejs/index"
87
}
98
}
109
});

jslab/lib/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
var jupyter_threejs = require('jupyter-threejs');
2+
3+
var jupyterlab_widgets = require('@jupyter-widgets/jupyterlab-manager');
4+
5+
module.exports = {
6+
id: 'jupyter.extensions.jupyter-threejs',
7+
requires: [jupyterlab_widgets.INBWidgetExtension],
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+
};

jslab/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "jupyterlab-threejs",
3+
"version": "0.1.0",
4+
"description": "",
5+
"main": "lib/index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "jupyterlab-threejs developers",
10+
"license": "BSD-3-Clause",
11+
"dependencies": {
12+
"@jupyter-widgets/jupyterlab-manager": "^0.23.2",
13+
"jupyter-threejs": "^0.3.0-alpha.0"
14+
},
15+
"jupyterlab": {
16+
"extension": true
17+
}
18+
}

pythreejs/_version.py

Lines changed: 8 additions & 2 deletions
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'

pythreejs/pythreejs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def vector2(trait_type=CFloat, default=None, **kwargs):
4848
default = [0, 0]
4949
return List(trait_type, default_value=default, minlen=2, maxlen=2, **kwargs)
5050

51+
PYTHREEJS_VERSION='0.4.0-alpha.0'
5152

5253
class ScaledObject(Object3D):
5354
"""
@@ -211,6 +212,8 @@ def flatten(ll):
211212
class Effect(Widget):
212213
_view_module = Unicode(npm_pkg_name).tag(sync=True)
213214
_model_module = Unicode(npm_pkg_name).tag(sync=True)
215+
_model_module_version = Unicode(PYTHREEJS_VERSION).tag(sync=True)
216+
_view_module_version = Unicode(PYTHREEJS_VERSION).tag(sync=True)
214217

215218

216219
class AnaglyphEffect(Effect):

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,8 @@
4747
'pythreejs/static/index.js',
4848
'pythreejs/static/index.js.map',
4949
]),
50-
('share/jupyter/labextensions/jupyter-threejs', [
51-
'pythreejs/staticlab/jupyter-threejs.bundle.js',
52-
'pythreejs/staticlab/jupyter-threejs.bundle.js.manifest',
53-
]),
5450
],
55-
'install_requires': ['ipywidgets>=7.0.0', 'traittypes'],
51+
'install_requires': ['ipywidgets>=7.0.0a9', 'traittypes'],
5652
'packages': find_packages(),
5753
'zip_safe': False,
5854
'cmdclass': cmdclass,

0 commit comments

Comments
 (0)