Skip to content

Showcase improvements - #7

Merged
jackptoke merged 4 commits into
mainfrom
showcase-improvements
Jul 13, 2026
Merged

jackptoke merged 4 commits into
mainfrom
showcase-improvements

Conversation

@jackptoke

Copy link
Copy Markdown
Owner

No description provided.

jackptoke and others added 4 commits July 13, 2026 18:54
Pinning numpy==1.26.4 was the wrong direction: pyarrow 25's wheels are built for
numpy 2.x, so numpy 1.x segfaults them the same way. But the unpinned default
(numpy 2.5.1) is ABI-broken against the duckdb 1.3.1 wheel and also segfaults on
Streamlit Cloud startup. The compatible window is numpy 2.0-2.4.

Pin numpy>=2.0,<2.5 (resolves to 2.4.6). Verified on linux/amd64: the
numpy/pyarrow/duckdb/pandas import + DataFrame conversion path — the one that
segfaulted — runs clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Streamlit Community Cloud's managed resolver kept producing ABI-mismatched
native stacks (numpy/pyarrow/duckdb segfaults), and its apps sleep/get reaped on
inactivity. Deploy the dashboard as a self-contained container instead, where the
exact wheels are locked by the image.

- dashboard/Dockerfile: python:3.12-slim, installs the pinned dashboard deps,
  bakes in the prebuilt read-only DuckDB warehouse, serves Streamlit on $PORT.
- railway.json: build via that Dockerfile (context = repo root).

Verified on linux/amd64: image builds with the coherent stack (numpy 2.4.6,
pyarrow 25, duckdb 1.3.1), starts without segfaulting, and renders the dashboard.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the 2x2 grids of vertical bar charts on the Customer loyalty page with
lollipop charts (a thin stem from the baseline to a dot, value labelled above),
per business colour. Cleaner to read than bars for ranked top-N values.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jackptoke
jackptoke merged commit 4365c19 into main Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant