Member-only story

PyScript: Python in the browser

Sophia Yang, Ph.D.
Towards Data Science
4 min readMay 1, 2022
source: pyscript.net

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…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in Towards Data Science

Your home for data science and AI. The world’s leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.

Responses (6)

What are your thoughts?

Very nice article! Thanks. It's short and sweet. Very clear.
But I think it could be slightly improved. When you discuss the probability distribution, you use K = number of heads in 10 throws as your data value. When you discuss the likelihood…

May I ask why L(theta, K=k_hat) = P(K=k_hay)…..assuming k_hat is 7 in this example

don’t understand this crucial part


Thanks for...

Great explanation of the difference between probability and likelihood! As someone who's delving into data science, your clear breakdown really helped me grasp the concepts better. Looking forward to more enlightening posts like this.