Skip to content

Commit

Permalink
nglview 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hainm committed Mar 23, 2018
1 parent fa05253 commit cef1668
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 46 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,8 @@ The development version can be installed directly from github:
# tested with ipywidgets 5.2.2, notebook 4.2.1
```
### jupyterlab user
HIGHLY EXPERIMENTAL. Things might not work as you are expecting.
```
# Please read its content before running
source devtools/nglview-jupyterlab.sh
```

Not supported yet.

Example
=======
Expand Down
File renamed without changes.
13 changes: 9 additions & 4 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "nglview-js-widgets",
"version": "1.1.0",
"version": "1.1.2",
"description": "nglview-js-widgets",
"author": "Hai Nguyen <hainm.comp@gmail.com>, Alexander Rose <alexander.rose@weirdbyte.de>",
"license": "MIT",
"main": "dist/index.js",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/arose/nglview.git"
Expand All @@ -13,7 +13,8 @@
"url": "https://github.com/arose/nglview/issues"
},
"files": [
"dist"
"dist",
"src"
],
"keywords": [
"molecular graphics",
Expand Down Expand Up @@ -45,7 +46,11 @@
"jquery": "^3.2.1",
"jquery-ui": "^1.12.1",
"underscore": "^1.8.3",
"@jupyter-widgets/base": "^0.5.2"
"ngl": "^2.0.0-dev.28",
"@jupyter-widgets/base": "^1.0.0"
},
"jupyterlab": {
"extension": "src/jupyterlab-plugin"
},
"homepage": "https://github.com/arose/nglview#readme",
"directories": {
Expand Down
7 changes: 3 additions & 4 deletions jslab/index.js → js/src/jupyterlab-plugin.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

var nglview_js_widgets = require('nglview-js-widgets');
var jupyterlab_widgets = require('@jupyter-widgets/jupyterlab-manager');
var nglview_js_widgets = require('./index');
var base = require('@jupyter-widgets/base');


module.exports = {
id: 'nglview-js-widgets',
requires: [jupyterlab_widgets.INBWidgetExtension],
requires: [base.IJupyterWidgetRegistry],
activate: function(app, widgets) {
widgets.registerWidget({
name: 'nglview-js-widgets',
Expand Down
24 changes: 0 additions & 24 deletions jslab/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion nglview/static/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nglview/static/index.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions nglview/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@ def test_make_sure_versions_matched():
break
line = line.replace('module.exports =', '')
assert json.loads(line)['version'] == nv.widget.__frontend_version__

# bakend and jslab
package_json = os.path.join(nglview_dir, '..', 'jslab', 'package.json')
with open(package_json) as fh:
assert json.loads(fh.read())['dependencies']['nglview-js-widgets'] == \
nv.widget.__frontend_version__
2 changes: 1 addition & 1 deletion nglview/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from .remote_thread import RemoteCallThread

__all__ = ['NGLWidget', 'ComponentViewer']
__frontend_version__ = '1.1.0' # must match to js/package.json and js/src/widget_ngl.js
__frontend_version__ = '1.1.2' # must match to js/package.json and js/src/widget_ngl.js
_EXCLUDED_CALLBACK_AFTER_FIRING = {
'setUnSyncCamera', 'setSelector', 'setUnSyncFrame', 'setDelay',
'autoView',
Expand Down

0 comments on commit cef1668

Please sign in to comment.