Skip to content

Browser demo that runs the real engine - #7

Merged
fortunexbt merged 11 commits into
mainfrom
showcase/2026-10
Oct 22, 2026
Merged

fortunexbt merged 11 commits into
mainfrom
showcase/2026-10

Conversation

@fortunexbt

@fortunexbt fortunexbt commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Live demo: https://tablebeam-eight.vercel.app

What changed

  • web/ holds a static page that answers questions with Tablebeam's own code. web/build.sh copies src/answer_format.py, src/data_pipeline.py, src/question_actions.py and src/table_analysis.py into the output unchanged, and a module worker loads them into Pyodide (CPython 3.14.2, pandas 3.0.2). The CSV is read in the tab and never uploaded.
  • Every answer shows what the question parsed to, the summarize_dataframe call behind it, the written-out arithmetic, the rows used, and a CSV download of those rows. The first question runs on load.
  • Only real published data. Confirmed exoplanets is the NASA Exoplanet Archive pscomppars table (6,451 rows; matched value for value against a fresh TAP query on 22 October 2026, only column names changed). Palmer penguins is byte-identical to penguins.csv from palmerpenguins (CC0). Both are credited in the page footer and the README. Visitors can also open their own CSV.
  • No AI output in the demo. Questions outside the recognised forms get a note that the desktop app can send them to a model you run locally with LM Studio or Ollama. The page never calls a model.
  • Shared changes: calculation_details no longer says "0 missing values are excluded", app.py imports display_result from answer_format rather than through the view, and provider_control.py drops an unused import.

Verification

  • pytest -q: 383 passed. tests/test_web_demo.py builds the output, asserts the copied modules are byte-identical to src/, answers every bundled question through the copy, checks that the written-out arithmetic reproduces the result, and checks that every bundled table names its source.
  • Lighthouse on the production URL: mobile 99/100/100/100, desktop 100/100/100/100.
  • Checked in Chromium at 360, 390, 768 and 1440 px: no horizontal overflow, tab order reaches every control with a visible focus ring, reduced motion keeps the fade and drops the movement.
  • Ran on the live URL: grouped and ungrouped answers, group switching, the CSV download, an unrecognised question, switching tables, and an uploaded CSV with blank cells, non-ASCII headers and integers past 2^53 (the total stays exact).

Profiling a 6,451-row table spent five seconds sending planet names through
dateutil. Values parse independently under format="mixed", so checking in
chunks and stopping early gives the same answer in a tenth of the time.
The hosted demo copies src/ into the page unchanged and drives it from a
module worker, so the answers, the arithmetic and the rows come from the
same code as the desktop app. Adds the page, a build step that assembles
the static output, and tests that fail if the copies drift.
… gaps

Greenbar striping on the evidence rows, a cooler paper ground, a tabbable
file control, no decorative pulse, and reduced motion that keeps the fade
but drops the movement.
Pyodide hands Python None to JavaScript as undefined and turns JavaScript
null back into JsNull, so a question without a group fell through to the
grouped branch and its evidence lookup failed. Also caps the evidence
table so a wide answer does not bury the rest of the page.
The hosted page now bundles the NASA Exoplanet Archive composite table
and Palmer penguins, both checked against their sources, and credits them
in the page and README. The invented CRM sample is no longer shipped, and
the hand-written AI transcript is gone: questions outside the recognised
forms get a note that the desktop app can send them to a local model.
@fortunexbt
fortunexbt merged commit 46b9d27 into main Oct 22, 2026
6 checks passed
@fortunexbt
fortunexbt deleted the showcase/2026-10 branch October 22, 2026 23:49
fortunexbt added a commit that referenced this pull request Oct 23, 2026
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