Skip to content

Sync python-dash with the updated tutorial - #958

Merged
realpython-bot merged 1 commit into
masterfrom
maintenance/python-dash-20261201
Dec 1, 2026
Merged

realpython-bot merged 1 commit into
masterfrom
maintenance/python-dash-20261201

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Syncs python-dash/ with the maintenance update of Develop Data Visualization Interfaces in Python With Dash.

What changed

  • requirements.txt: re-compiled for Python 3.13 with dash==4.5.2 and pandas==3.1.2. The old pandas==1.5.3 pin has no wheels past CPython 3.11 and fails to build on 3.13.
  • app.py (all three stages): app.run_server(debug=True) → app.run(debug=True). Dash 3 removed run_server().
  • avocado_analytics_1/app.py: "layout": {"title": "..."} → {"title": {"text": "..."}}. plotly.js 3 dropped string titles.
  • avocado_analytics_3/assets/style.css: replaced the react-select .Select-* rules with a single .dropdown { width: 256px; } rule. Dash 4's redesigned dcc.Dropdown no longer renders those classes.

These match the article's update draft: https://realpython.com/pbjt/blog/post/2741/change/
Maintenance card: https://trello.com/c/hFwhNByf

Verification

  • Fresh Python 3.13 venv installed from the new requirements.txt.
  • Each stage's app.py imported, and /, /_dash-layout, and /_dash-dependencies served 200 through the Flask test client. For stage 3, update_charts() was called directly, and a /_dash-update-component request returned 200.
  • ruff@0.14.1 format --check and ruff@0.14.1 check pass on python-dash/.
  • Not checked: the dropdown styling in a browser.

🤖 Generated with Claude Code

…ation Interfaces in Python With Dash

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@realpython-bot
realpython-bot merged commit 9bc3e74 into master Dec 1, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/python-dash-20261201 branch December 1, 2026 07:02
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