Skip to content

Commit d9fb545

Browse files
committed
try some binder tricks
1 parent 55ef347 commit d9fb545

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

binder/environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ dependencies:
55
- opencv
66
- python >=3.6,<3.9.0a0
77
- jupyterlab >=2.1.1,<2.2
8-
- nodejs >=11,<12
8+
- nodejs >=14,<15
9+
- geckodriver >=0.26.0,<0.27.0
910
- pip
1011
- pip:
1112
- matplotlib==3.1.2

binder/postBuild

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
#!/bin/bash
2-
curl -L https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz > geckodriver.tar.gz
3-
tar -xzf geckodriver.tar.gz -C /srv/conda/bin/
4-
pip install -e .
2+
set -eux
3+
pip install -e . -vv
54
python -m robotkernel.install --sys-prefix
65
jupyter serverextension enable --sys-prefix --py jupyter_starters
7-
cd src/jupyterlab_robotmode && npm install && npm run build && cd ../..
8-
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
9-
jupyter labextension install src/jupyterlab_robotmode --no-build
10-
jupyter labextension install @deathbeds/jupyterlab-starters@0.3.0-a0 --no-build
11-
jupyter lab build --minimize=True --dev-build=False --debug
6+
7+
pushd src/jupyterlab_robotmode
8+
npm install
9+
npm run build
10+
jupyter labextension install --no-build $(npm pack)
11+
popd
12+
13+
jupyter labextension install --no-build \
14+
@deathbeds/jupyterlab-starters@0.3.0-a0 \
15+
@jupyter-widgets/jupyterlab-manager
16+
17+
jupyter lab build --minimize=False --debug
18+
1219
mkdir -p .jupyter/jupyter_notebook_config.d
1320
cp src/robotkernel/resources/starter/robotkernel-starter.json .jupyter/jupyter_notebook_config.d

0 commit comments

Comments
 (0)