Add Panel-based web application GUI#144
Draft
jdebacker wants to merge 4 commits into
Draft
Conversation
Introduces an interactive browser-based GUI for OG-USA built with Panel, replacing the now-unmaintained Compute Studio platform. The app can be run locally or served on the web, supports the full baseline + reform workflow, and notifies users by email on completion. Key changes: - ogusa/app/backend/functions.py: adapted from cs-config with all Compute Studio dependencies (cs2tc, cs_storage, cs-kit) removed; convert_policy_adjustment inlined; comp_output returns matplotlib Figure objects and HTML strings instead of PNG bytes - ogusa/app/backend/helpers.py: PUF/TMD data retrieval helpers, cs-kit dependency removed - ogusa/app/ui/parameter_form.py: auto-generates Panel widgets from ParamTools schema (76 widgets across 6 sections); TC reform via JSON text area - ogusa/app/ui/job_manager.py: param.Parameterized reactive state; background thread with per-phase progress reporting; optional email notification via smtplib - ogusa/app/ui/results_viewer.py: renders figures, HTML tables, and CSV download buttons from comp_output dict - ogusa/app/app.py: FastListTemplate with sidebar controls and tabbed main area; live elapsed-time display during runs - launch_ogusa.command: double-click macOS launcher - environment.yml: replace cs-kit/cs2tc with panel>=1.3 - README.md: add Interactive Web Application section with local, hosted, email, and output-directory instructions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
panel serve runs app.py as a standalone script, not as part of a package, so relative imports fail. Add repo root to sys.path in app.py and convert all relative imports to absolute throughout. Co-Authored-By: Claude Sonnet 4.6 <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.
Introduces an interactive browser-based GUI for OG-USA built with Panel, replacing the now-unmaintained Compute Studio platform. The app can be run locally or served on the web, supports the full baseline + reform workflow, and notifies users by email on completion.
Key changes: