Skip to content

Commit f5d1e4b

Browse files
committed
update binder, add badge
1 parent ad70851 commit f5d1e4b

File tree

5 files changed

+48
-8
lines changed

5 files changed

+48
-8
lines changed

.binder/environment.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: pythreejs
2+
channels:
3+
- conda-forge
4+
- nodefaults
5+
dependencies:
6+
# runtimes
7+
- python >=3.6
8+
- nodejs >=12
9+
# dependencies
10+
- ipydatawidgets >=1.1.1
11+
- ipywidgets >=7.2.1
12+
- numpy >=1.14
13+
# clients
14+
- jupyterlab >=3,<4
15+
- jupyterlab-classic
16+
# dev
17+
- nbval
18+
- pytest-check-links
19+
# examples
20+
- ipympl
21+
- ipywebrtc
22+
- matplotlib-base
23+
- scikit-image
24+
- scipy

.binder/postBuild

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
set -eux
3+
4+
pushd js
5+
jlpm --ignore-optional
6+
jlpm build:bundles
7+
jlpm build:all
8+
popd
9+
10+
python -m pip install -e . --no-deps --ignore-installed
11+
python -m pip check
12+
13+
# install labextension
14+
jupyter labextension develop . --overwrite
15+
16+
# validate
17+
jupyter nbextension list
18+
jupyter labextension list

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ include screencast.gif
99
graft docs
1010
exclude docs/\#*
1111

12+
# demo
13+
exclude .binder
14+
1215
# docs subdirs we want to skip
1316
prune docs/build
1417
prune docs/dist

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# pythreejs
22

3+
[![Interactive demo on Binder][binder-badge]][binder]
34
[![Install from PyPI][pypi-badge]][pypi]
45
[![Install from conda-forge][cf-badge]][cf]
56
[![Documentation Status][docs-badge]][docs]
67
[![Build Status][ci-badge]][ci]
78

89
A Python / ThreeJS bridge for [Jupyter Widgets][widgets].
910

11+
[binder-badge]: https://mybinder.org/badge_logo.svg
12+
[binder]: https://mybinder.org/v2/gh/jupyter-widgets/pythreejs/HEAD?urlpath=lab%2Ftree%2Fexamples%2FExamples.ipynb
1013
[pypi-badge]: https://img.shields.io/pypi/v/pythreejs?logo=pypi
1114
[pypi]: https://pypi.org/project/pythreejs
1215
[cf-badge]: https://img.shields.io/conda/vn/conda-forge/pythreejs?logo=conda-forge

environment.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)