Skip to content

Sync brython with the updated tutorial - #955

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/brython-python-in-browser-20261128
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/brython-python-in-browser-20261128

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Companion change for the maintenance update of Brython: Python in Your Browser.

What changed

  • brython/README.md: pinned the import_js install command to python -m pip install brython==3.9.1. The tutorial now pins the same version: newer Brython releases replaced the brython-cli --install / --modules flags with subcommands, so an unpinned install breaks the commands this example relies on.
  • brython/README.md: the unversioned brython.info/static_doc/en/aio.html and ajax.html links return 404. Pointed them at the current static_doc/3.15/en/browser.aio.html and browser.ajax.html pages, matching the tutorial.

No code files changed. The tutorial's other code fixes (HelloSalut endpoint, removed Public APIs example) touch snippets that aren't in this folder.

Links

Verification

  • A fresh Python 3.9 venv with brython==3.9.1: brython-cli --install printed Installing Brython 3.9.1 and created the project files. brython-cli --modules run against import_js/index.html and functional.py generated brython_modules.js.
  • Every .py file under brython/ parses. The examples run in the browser through Brython, so CPython can't execute them.
  • ruff@0.14.1 format --check brython and ruff@0.14.1 check brython both pass.
  • Both new doc URLs return HTTP 200.

🤖 Generated with Claude Code

…rowser

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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