Skip to content

Commit d16343c

Browse files
authored
Get NGLView working in Jupyter Lab on Binder (#6)
* Try correcting Binder install so NGLView works * try some stuff from hainm/nglview-binder * try more direct copy of hainm's stuff * jupyterlab < 3 * remove no-build
1 parent 94c4975 commit d16343c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

binder/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ channels:
55
- defaults
66
dependencies:
77
- jupyter
8+
- nodejs
89
- nglview
910
- openmm
1011
- tqdm
1112
- openpathsampling
1213
- openmmtools
14+
- jupyterlab <3
1315
prefix: /Users/dwhs/miniconda3/envs/ops-tutorial

binder/postBuild

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
nglview install && nglview enable
2+
jupyter labextension install @jupyter-widgets/jupyterlab-manager
3+
jupyter labextension install nglview-js-widgets@2.7.7
4+
jupyter nbextension enable nglview --py --sys-prefix
15
bash ./devtools/download-files

0 commit comments

Comments
 (0)