v0.9.2: GUI polish -- example dropdown, spinners, JSON+PDF download - #3
Merged
Conversation
Polish pass on the existing app/streamlit_app.py (not a rewrite); improve in place, no duplicated features. kernel_viewer core + its output untouched. - Example loader: it already auto-listed examples/*.npz (the spec's "hardcoded" assumption did not hold), so this just relocates it to a sidebar "Load Example Dataset" selectbox + button; the uploader stays in the main area. No second loader added. - st.spinner on the genuinely slow steps (load / classify / dashboard render / stateflow), with plain honest messages -- 4D classification is slow. - New "Download results" area: JSON reuses kernel_viewer.io.saver.save_report (single source of truth, not hand-serialized) and a one-page PDF of the SAME dashboard Figure already shown (matplotlib's own pdf backend; no new dep, no multi-page assembly). Both exposed as importable helpers report_json_bytes / dashboard_pdf_bytes so the headless smoke test can reach them. - New paths (example load, exports) stay inside the existing st.error handling. - Version -> 0.9.2. Verified: headless GUI smoke (AppTest) passes; JSON has regime/coherence/ exponent/features/notes; PDF starts with %PDF; both core suites green and kernel-viewer output byte-identical. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Polish pass on the existing app/streamlit_app.py (not a rewrite); improve in place, no duplicated features. kernel_viewer core + its output untouched.
Verified: headless GUI smoke (AppTest) passes; JSON has regime/coherence/ exponent/features/notes; PDF starts with %PDF; both core suites green and kernel-viewer output byte-identical.