Skip to content

Sync python-scipy-cluster-optimize with the updated tutorial - #944

Merged
realpython-bot merged 1 commit into
masterfrom
maintenance/python-scipy-cluster-optimize-20261114
Nov 14, 2026
Merged

realpython-bot merged 1 commit into
masterfrom
maintenance/python-scipy-cluster-optimize-20261114

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Companion change for the maintenance update of the tutorial Scientific Python: Using SciPy for Optimization.

What changed

  • Added requirements.txt pinning the same versions as the updated article's dependencies field (numpy==2.5.4, scipy==1.18.1, tested on Python 3.14).
  • README: the dataset authors' website (www.dt.fee.unicamp.br) no longer resolves, so the link now points to its Wayback Machine snapshot, matching the article fix. The three preprint PDF links on the same host are also dead and were left alone for a human to decide.
  • The scripts already matched the article's code, so they're unchanged.

Verification

  • Ran cluster_sms_spam.py, minimize_scalar.py, and minimize_constrained.py on Python 3.14 with the pinned requirements. All exit 0, and their output matches the updated article's output blocks.
  • [email protected] format --check and [email protected] check both pass.

Article draft: https://realpython.com/pbjt/blog/post/2645/change/
Maintenance card: https://trello.com/c/Cr70lwF8

🤖 Generated with Claude Code

…entific Python: Using SciPy for Optimization

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@realpython-bot
realpython-bot merged commit 218a6d1 into master Nov 14, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/python-scipy-cluster-optimize-20261114 branch November 14, 2026 07:01
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