--- title: "Python in the browser after PyScript" author: "Tomson Alex" published: "2026-12-03T05:46:52.819Z" updated: "2026-12-03T05:46:52.819Z" url: "https://zyvop.com/python-in-the-browser-after-pyscript-g0lqa" canonical: "https://zyvop.com/python-in-the-browser-after-pyscript-g0lqa" tags: ["Python","PyScript","WebAssembly","Pyodide","AI agents"] --- # Python in the browser after PyScript PyScript is in maintenance mode while Pyodide keeps shipping. Do coding agents that translate code make Python in the browser obsolete? ![Cover image]() PyScript is in maintenance mode. The API is frozen, new issues and pull requests are closed, and only Pyodide updates continue, at a slower pace. Real Python mentioned it in its November news roundup and ended the item with a question. Do we still need Python in the browser, now that coding agents can translate code into JavaScript or WebAssembly? I think the answer splits in two, because PyScript and Pyodide were never the same bet. ## What actually stopped PyScript sits on top of an interpreter, either Pyodide or MicroPython. It adds HTML tags for Python, a bridge to the DOM, a config file for packages and worker support. The pitch was simple: write a page's logic in Python instead of JavaScript. The maintainer, Andrea Giammarchi, announced the freeze in late summer. His reason was that PyScript stayed a niche project. In practice: - The API is frozen. - No new issues or pull requests are accepted. - Pyodide version bumps continue, more slowly. - Existing apps keep working. - The code is Apache-licensed, so anyone who needs a change can fork it. The 2026.7.3 release, the newest on the releases page at the time of writing, shows what is left. It bumped Pyodide to 314.0.3, with a couple of small fixes and a linter migration in the supporting library. Notice that the stated reason is adoption, not AI. Keep that in mind before reading the freeze as a verdict on coding agents. ## Pyodide is still moving Pyodide is CPython compiled to WebAssembly with Emscripten, and it keeps shipping. Release numbers now follow the Python version, so 314.x means Python 3.14. - **Mid-June:** the final 314.0.0 was out. - **August:** the cibuildwheel build tool picked up a 315 alpha for Python 3.15. - **Early September:** 314.0.6 was out. Packaging is improving too. Projects that wanted to ship binary wheels for Pyodide have had to host them somewhere other than PyPI. PEP 783 defines a `pyemscripten` platform tag so those wheels can be published on PyPI, and cibuildwheel already knows how to build them. What you get today: - NumPy, pandas, SciPy, Matplotlib and scikit-learn, with their C extensions ported - `micropip` for pure-Python wheels from PyPI - A two-way bridge to JavaScript, with async/await and errors handled in both directions - Full access to the Web APIs when running in a browser Real Python's roundup calls Pyodide one of the few ways to run NumPy or pandas in a browser tab. ## The case that it's obsolete If what you wanted was Python for page logic, the argument is strong. Most people who reached for PyScript knew Python and didn't want to write JavaScript. A coding agent takes that reason away. Ask for a click handler, a form validator or a small chart, and you get working JavaScript in seconds, with no interpreter to ship. The interpreter isn't free, either. The runtime is a multi-megabyte download before you add a package, and real apps feel it: - Panel-live, which runs Panel apps entirely on Pyodide, documents 5 to 15 seconds for the first load. - It also lists roughly 300 to 500 MB of memory per page. - Threading, multiprocessing and sockets can be imported but don't work. - Network calls go through the browser, so you get little control over certificates, timeouts or proxies. For a sixty-line widget that is a poor trade. The agent-written JavaScript version wins on every axis. ## Where the argument breaks ### Libraries don't translate An agent can translate your code. It can't translate the libraries under it. A script that calls pandas and SciPy turns into a script that calls something else, and that something behaves differently around indexing, missing values, defaults and numerical methods. Even the basics differ: | Expression | Python | JavaScript | | --- | --- | --- | | `-7 % 3` | `2` | `-1` | | `round(2.5)` | `2` (ties to even) | `Math.round(2.5)` gives `3` | | `2**64` | `18446744073709551616` | `18446744073709552000` (a rounded float) | A good agent knows all of this. But every translation still has to be tested against the original, and afterwards you own two implementations that can drift apart. ### Sometimes the Python is the product JupyterLite is a JupyterLab distribution that runs entirely in the browser, with Python kernels running on Pyodide in web workers. The marimo developers said Pyodide let their reactive notebook run in a tab. In those cases the visitor types Python into the page, so there is nothing to translate. ### Agents need somewhere to run Python This is the point I find most interesting. Models write a lot of Python, especially for data analysis and plots, and somebody has to execute it. NVIDIA has published a walkthrough that moves LLM-generated Python into the user's browser through Pyodide. A bad script is then contained by the browser sandbox instead of your server. A Red Hat engineering write-up from April used Pyodide as a sandbox for agent code and found a catch. In Node.js, Pyodide's `js` module can reach `require`, which opens the filesystem, network and process APIs, so they had to block it themselves. The sandbox is only as good as the host around it. The demand is real anyway. ### The WebAssembly half of the question For an agent, "translate to WebAssembly" means rewriting the program in Rust or C and compiling that. It's the same library problem again, with a build step on top. Running Python itself is what Pyodide already does. ## So, obsolete? Partly. Agents have weakened the idea PyScript was selling: Python as an alternative to JavaScript for page logic. Whether that caused the freeze is a different claim, and the maintainer didn't make it. Pyodide answers a different need: running existing Python, with its compiled libraries, where you have no server or don't want one. Agents don't remove that need and may add to it. ```mermaid flowchart TD A["What is the Python for?"] --> B{"Page logic or small UI?"} B -->|Yes| C["Write JS or TS, let an agent help"] B -->|No| D{"Needs NumPy, pandas or SciPy, or users typing Python?"} D -->|Yes| E["Use Pyodide directly"] D -->|No| F{"Running agent-written Python?"} F -->|Yes| G["Pyodide, with the browser as the sandbox"] F -->|No| H["Ask whether you need Python here at all"] ``` If you already have a PyScript app: - It keeps running. Pin the version and self-host it (releases include an offline archive). - Plan a move to Pyodide directly if you need updates. - If you need changes to PyScript itself, the license lets you fork. ## Using Pyodide directly It takes less code than people expect: ```javascript import { loadPyodide } from "pyodide"; const py = await loadPyodide(); await py.loadPackage("numpy"); const mean = py.runPython(` import numpy as np float(np.linspace(0, 1, 5).mean()) `); console.log(mean); // 0.5 ``` The costs listed earlier still apply: startup time, memory, no threads or sockets. Measure them against your actual page before committing. ## Sources - Real Python, [Python 3.15 Ships and Other Python News for November 2026]() (PyScript maintenance mode, Pyodide's role) - PyCoder's Weekly, [Issue #755]() (PyScript API frozen, only Pyodide updates continue) - PyScript, [releases]() (2026.7.3, offline archive) - Pyodide, [README]() and [Python compatibility]() (packages, JS bridge, threading and network limits) - [PEP 783](), Emscripten Packaging - [cibuildwheel]() changelog, 4.1.0 (Pyodide 314.0.0 final, 12 June 2026) and 4.2.0 (Pyodide 315 alpha, 4 August 2026) - Flet, [python-build PR #40]() (Pyodide 314.0.6) - [Panel-live known limitations]() (load time, memory, no threads) - [JupyterLite]() and the [marimo note in Pyodide discussion #4594]() - NVIDIA, [Sandboxing Agentic AI Workflows with WebAssembly]() - Red Hat, [Code execution with MCP: How sandboxed Python replaces tool schema bloat in AI agents]()