Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ set -euo pipefail
echo "[postBuild] Editable install of local package"
pip install -e .

echo "[postBuild] Prune heavy, non-notebook files"
rm -rf rcpchgrowth/tests || true
rm -f rcpchgrowth/data_tables/bayley-pineau.pdf || true
rm -f rcpchgrowth/data_tables/uk-who_resources/GrowthCharts.xls || true
rm -f rcpchgrowth/data_tables/uk-who_resources/*.bas || true
rm -f rcpchgrowth/data_tables/fenton/*.* || true

echo "[postBuild] Warm up matplotlib font cache"
python - <<'PY'
import matplotlib.pyplot as plt # triggers font cache build
import matplotlib.pyplot as plt
print("Matplotlib imported; font cache built.")
PY

echo "[postBuild] Warm up JupyterLab (pre-build static if needed)"
jupyter lab build --minimize=False >/dev/null 2>&1 || true
echo "[postBuild] Done"
1 change: 1 addition & 0 deletions .binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.10