# Python in the browser after PyScript

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 Diagram](https://mermaid.ink/img/pako:eNplkUFvGjEQhf_KdM7eQ6WeODSCUJpUKkLZ0KrCHGZ3h7UVr72yh262wH-vDAlU6tGjN99783zAOjSME9y5MNSGosDzXHsAgOlG409DAjaBGIbVKCZ42IV4p3ELRfEZZgeNK2oZXGhtDSFC6sg5WD_eaTxdMLOsPP7idIT7TIxWGL6VWfxcKnAsQB6oZS9g2PUat_8uLsMR5geNS-YmwXLfrUYFPfmGUkaUtc2DEGGfOCaQsbe-fct6CzG_hfiy0bhO-ZzQ2IahsZFrcePVd371XRw0Pu29z8RzwGKIVoT9f_zFjf91o_GNrWCwYs7lVTEMiSPQpctEvqnC69VzcfV82GicphcYDIvhCGPYg2du3us3HBlIgJzTuEWFHceObIOTA4rhLv9lwzvaO0F1mfygaKlynLJmF7wsqLNuxAkW1PeOizQm4U7BzFn_8p3q8vxeBC8KNJbcBob1o0YFT6EKEhQ8sPvNYmtSMI2WnMoXpSJxtDtUZ5PS_slZPn7qX_F0Uli198GFiBP8MBgrjKe_BBPRsA?type=png)

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](https://realpython.com/python-news-november-2026/) (PyScript maintenance mode, Pyodide's role)
    
-   PyCoder's Weekly, [Issue #755](https://pycoders.com/issues/755) (PyScript API frozen, only Pyodide updates continue)
    
-   PyScript, [releases](https://github.com/pyscript/pyscript/releases) (2026.7.3, offline archive)
    
-   Pyodide, [README](https://github.com/pyodide/pyodide) and [Python compatibility](https://pyodide.org/en/latest/usage/wasm-constraints.html) (packages, JS bridge, threading and network limits)
    
-   [PEP 783](https://peps.python.org/pep-0783/), Emscripten Packaging
    
-   [cibuildwheel](https://github.com/pypa/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](https://github.com/flet-dev/python-build/pull/40) (Pyodide 314.0.6)
    
-   [Panel-live known limitations](https://panel-extensions.github.io/panel-live/reference/known-limitations) (load time, memory, no threads)
    
-   [JupyterLite](https://github.com/jupyterlite/jupyterlite) and the [marimo note in Pyodide discussion #4594](https://github.com/pyodide/pyodide/discussions/4594)
    
-   NVIDIA, [Sandboxing Agentic AI Workflows with WebAssembly](https://developer.nvidia.com/blog/sandboxing-agentic-ai-workflows-with-webassembly/)
    
-   Red Hat, [Code execution with MCP: How sandboxed Python replaces tool schema bloat in AI agents](https://next.redhat.com/2026/04/23/how-sandboxed-python-reduces-tool-schema-overhead-in-ai-agents/)

---

*Published via [ZyVOP](https://zyvop.com/python-in-the-browser-after-pyscript-g0lqa?utm_source=hashnode&utm_medium=crosspost&utm_campaign=syndication) — Write once in Markdown, auto-backup to GitHub, and syndicate to Dev.to, Medium & Hashnode in 1 click.*
