adaptive-lighting/webapp/README.md
Bas Nijholt 42bca7d140 Fix webapp for Shinylive deployment by separating requirements
Shinylive/Pyodide was failing because it tried to install packages that
are already pre-built in Pyodide (like matplotlib and its C-extension
dependencies).

Changes:
- Split requirements into two files:
  - requirements.txt: Minimal deps for Shinylive (only astral, shiny, shinyswatch)
  - requirements-dev.txt: Full deps for local development (includes matplotlib)
- Update README to use requirements-dev.txt for local development
- Update GitHub workflow to use requirements-dev.txt
- Remove matplotlib version pinning as Pyodide provides it

This fixes the "Can't find a pure Python 3 wheel for 'contourpy'" error
when loading the webapp at https://basnijholt.github.io/adaptive-lighting/
2025-07-21 15:27:56 -07:00

283 B

To run this app locally, install the requirements and run shiny run.

$ cd webapp
$ pip install -r requirements-dev.txt
$ shiny run

After the server starts, which should take only a moment, you can open http://127.0.0.1:8000 to see the interface.