Snakes in a browser
summary
Explains how Python validation and UI logic move into the browser by shipping bytecode not source and running it on a small JS VM, avoiding heavy interpreters. Compares Brython (~500 KB) and Pypy.js (~10–15 MB) with a lightweight bavia (≈10 KB) that runs CPython bytecode, notes it's slower but responsive enough for validation, and shows a deployed Django site plus a client UI with user-space client ~30–40 lines of Python.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:10Whats changed
- 4:17JavaScript isomorphic
- 4:39Integration libraries
- 5:33Isomorphic JavaScript
- 6:39Requirements
- 7:36History
- 8:16Data Model
- 8:39Browser
- 11:33Python in browser
- 13:05Python compiler
- 13:40Bataglia
- 14:16Running Python in the browser
- 15:23The downside
- 16:54Can you write apps in Python
- 17:05Toga
- 19:56Resources
related talks
45mThe marvelous world of Python in Browser: a nice surprise
23mRunning (snippets of) Python in the browser
33mPython in the browser
39mPyScript - Python in the Browser
31mRevolutionize the Web with Python - Brython
45mHow to run Python in the browser
41mPyodide: A Python distribution for the browser
28mPython Apps in the Browser made simple by PyCafe
