Member-only story
PyScript: Python in the browser
Are you a data scientist or a developer who mostly uses Python? Are you jealous of developers who write Javascript code and build fancy websites in a browser? How nice would it be if we can write websites in Python? Amazingly, at PyCon US 2022, Anaconda’s CEO Peter Wang announced a shiny new technology called PyScript that allows users to write Python and in fact many languages in the browser.
What is PyScript <py>?
Developed by the team from Anaconda including Peter Wang, Fabio Pliger and Philipp Rudiger, PyScript is, as Peter mentioned in his talk, “a system for interleaving Python in HTML (like PHP).” This means you can write and run Python code in HTML, call Javascript libraries in PyScript, and do all your web development in Python. Sounds amazing!
What does it mean for the world and for data scientists to use PyScript?
- The most obvious thing is that with PyScript, we can now write Python (and potentially other languages) in HTML and build web applications. PyScript makes the power of Python accessible to a far greater audience of front-end developers and creators.
- As Peter mentioned in the talk, “the web browser is the most ubiquitous, portable computer environment in the world.” Indeed, everyone has access to a web…