JavaScript is the de-facto programming language of the browser. We can't write any other programming language inside an HTML.
But a recent Python package is about to change it.
Now you can write Python scripts inside the HTML. You can:
- use it to manipulate DOM like JS is doing;
- fetch data from external APIs using urllib or requests;
- use your favorite Python packages such as Pandas, Scikit-learn, etc, and;
- build ML models
all inside the browser.
But the package isn't perfect for production yet.
In this post, I discuss with examples some of the merits and drawbacks of using Python on a browser.
Top comments (0)