Skip to content

Commit d1cf5e0

Browse files
authored
Merge pull request #76 from rcpch/start
omg-notebooks-on-binder-are-finally-deploying
2 parents 3d7a101 + 6939616 commit d1cf5e0

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

.binder/postBuild

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
echo "[postBuild] Editable install of local package"
5+
pip install -e .
6+
7+
echo "[postBuild] Warm up matplotlib font cache"
8+
python - <<'PY'
9+
import matplotlib.pyplot as plt # triggers font cache build
10+
print("Matplotlib imported; font cache built.")
11+
PY
12+
13+
echo "[postBuild] Warm up JupyterLab (pre-build static if needed)"
14+
jupyter lab build --minimize=False >/dev/null 2>&1 || true
15+
echo "[postBuild] Done"

.binder/requirements.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
rcpchgrowth[notebook]
1+
pandas
2+
matplotlib
3+
jupyterlab
4+
ipykernel
5+
scipy
6+
python-dateutil

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
[![PyPI version](https://img.shields.io/pypi/v/rcpchgrowth.svg?style=flat-square&labelColor=%2311a7f2&color=%230d0d58)](https://pypi.org/project/rcpchgrowth/)
66
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg?style=flat-square&labelColor=%2311a7f2&color=%230d0d58)](https://www.gnu.org/licenses/agpl-3.0)
7+
[![Binder](https://img.shields.io/badge/Binder-Binder?style=flat-square&labelColor=%2311a7f2&color=%230d0d58&logo=jupyter)](https://mybinder.org/v2/gh/rcpch/rcpchgrowth-python/live?urlpath=lab/tree/notebooks/Quickstart.ipynb)
78
[![Codespaces](https://img.shields.io/badge/Codespaces-Open_in_Cloud?style=flat-square&labelColor=%2311a7f2&color=%230d0d58&logo=github&logoColor=white)](https://codespaces.new/rcpch/rcpchgrowth-python?quickstart=1)
89

910
Please go to <https://growth.rcpch.ac.uk/products/python-library/> for full documentation.

0 commit comments

Comments
 (0)