Python in the Browser — An Accelerator for Data Science?
The Python Development Team aims to make Python code running in the Browser

Python may be the most popular programming language in the world, especially in the field of Data Science, but unlike JavaScript, you can’t run Python code in the browser.
Python runs on many platforms: Linux, Windows, Apple Macs, microcomputers, and even Android devices. But it’s a widely known fact that Python is not suitable if you want to run code in a browser, you will have to use JavaScript.
While the foundation notes that cross-compiling to WebAssembly is still “highly experimental” due to a lack of modules in the Python standard library, PyCon 2022 showed that the community is increasingly interested in making Python a better language for the browser [1][2].
So what many developers would find great, can probably also apply to the fields of Data Science and co. Here, too, it would be easier to make self-developed Data Science tools and services available without the need for additional JavaScript. Here, I see two advantages:
- Fewer interfaces, which would lead to the fact that fewer errors or suspectibilities exist.
- Less needed Know How— sub topics are already hardly well trained coworkers, so possibly additional resources can be renounced, since a complete project with Python can be realized. Hence, a possible second developer could be saved.

See below a “Hello, world!” example using PyScript [4]:
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
</head>
<body> <py-script> print('Hello, World!') </py-script> </body>
</html>Good news, I think. Me and many others will certainly keep an eye on the issue. To dive deeper into the topic and take your first steps into it, please use the links below.
Sources and Further Readings
[1] ZDNet, Python im Browser (2022)
[2] MUO, PyScript Beta Lets You Run Python in the Browser (2022)
[3] GitHub, pyscripter/README.md (2022)
[4] GitHub, Getting started with PyScript (2022)
