Conversation
- src/divvy/ui.py: local web app to add/remove tickers, tweak weights, pick a contribution source, and compare portfolios live with a table, headline metrics, and interactive value/dividend charts - divvy ui CLI command launches it; streamlit behind [ui] extra - Refactor report.py: shared value_over_time()/cumulative_dividends() helpers (one source of truth for PNG report + UI), with tests - Fix: cumulative_dividends kept a unique date index when multiple holdings pay on the same ex-date (caught by smoke test) - README: document the Experiment Lab Co-Authored-By: Claude Opus 4.8 <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.
Adds a local, interactive UI for running portfolio experiments — the requested "compare my portfolios visually" feature.
What's in here
divvy uilaunches a local Streamlit app (100% local, no data leaves the machine)date,amountCSV), configure 1–4 portfolios with an add/remove-ticker editor + weightsreport.pyrefactor: sharedvalue_over_time()/cumulative_dividends()helpers so the UI and the PNG report agreecumulative_dividendsnow keeps a unique date index when two holdings pay on the same ex-date[ui]extra; README documents itChecklist
uv run pytestpasses (13 tests)ruff check+ruff format --checkpass🤖 Generated with Claude Code