From 76fd87d776407fbd509cef03c2e0c0c54f75e9f0 Mon Sep 17 00:00:00 2001 From: Kavya Wadhwa Date: Mon, 12 Oct 2026 09:33:52 +0530 Subject: [PATCH 1/2] Make the Binder badges open a working notebook The badges pointed at attenuation.ipynb in the repository root, but the notebook lives in examples/, and Binder had nothing to install the package from. Install the published wheel from PyPI instead. --- README.md | 4 ++-- binder/requirements.txt | 2 ++ binder/runtime.txt | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 binder/requirements.txt create mode 100644 binder/runtime.txt diff --git a/README.md b/README.md index 1cbd338..2ffb140 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Geant4 Python Application -[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lobis/geant4-python-application/HEAD?labpath=attenuation.ipynb) -[![Binder](https://binderhub.ssl-hep.org/badge_logo.svg)](https://binderhub.ssl-hep.org/v2/gh/lobis/geant4-python-application/HEAD?labpath=attenuation.ipynb) +[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lobis/geant4-python-application/HEAD?labpath=examples%2Fattenuation.ipynb) +[![Binder](https://binderhub.ssl-hep.org/badge_logo.svg)](https://binderhub.ssl-hep.org/v2/gh/lobis/geant4-python-application/HEAD?labpath=examples%2Fattenuation.ipynb) [![PyPI](https://img.shields.io/pypi/v/geant4-python-application)](https://pypi.org/project/geant4-python-application/) [![Python](https://img.shields.io/pypi/pyversions/geant4-python-application)](https://pypi.org/project/geant4-python-application/) diff --git a/binder/requirements.txt b/binder/requirements.txt new file mode 100644 index 0000000..38fbfd5 --- /dev/null +++ b/binder/requirements.txt @@ -0,0 +1,2 @@ +geant4-python-application +matplotlib diff --git a/binder/runtime.txt b/binder/runtime.txt new file mode 100644 index 0000000..d2aca3a --- /dev/null +++ b/binder/runtime.txt @@ -0,0 +1 @@ +python-3.12 From 1f0f018e2993d511d80f15b5a34bad25723b3838 Mon Sep 17 00:00:00 2001 From: Kavya Wadhwa Date: Mon, 12 Oct 2026 09:34:15 +0530 Subject: [PATCH 2/2] Link the PyPI project page from the installation section --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 2ffb140..8dc2f66 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,9 @@ reach out to kavyavadhwa@gmail.com. ## Installation +The package is published on +[PyPI](https://pypi.org/project/geant4-python-application/): + ```bash pip install "geant4-python-application[gui]" ```