diff --git a/.binder/postBuild b/.binder/postBuild new file mode 100755 index 0000000..acd468f --- /dev/null +++ b/.binder/postBuild @@ -0,0 +1,15 @@ +#!/bin/bash +set -euo pipefail + +echo "[postBuild] Editable install of local package" +pip install -e . + +echo "[postBuild] Warm up matplotlib font cache" +python - <<'PY' +import matplotlib.pyplot as plt # triggers font cache build +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" \ No newline at end of file diff --git a/.binder/requirements.txt b/.binder/requirements.txt index 2f1c87e..20d3721 100644 --- a/.binder/requirements.txt +++ b/.binder/requirements.txt @@ -1 +1,6 @@ -rcpchgrowth[notebook] \ No newline at end of file +pandas +matplotlib +jupyterlab +ipykernel +scipy +python-dateutil \ No newline at end of file diff --git a/README.md b/README.md index b7b5f4b..4bd6e26 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![PyPI version](https://img.shields.io/pypi/v/rcpchgrowth.svg?style=flat-square&labelColor=%2311a7f2&color=%230d0d58)](https://pypi.org/project/rcpchgrowth/) [![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) +[![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) [![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) Please go to for full documentation.