Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Run Python Code on Websites: Exploring Brython

JavaScript Equivalent Scripting in Python

5 min readNov 15, 2020

--

Being a follower of Python for a long time, I never stop exploring this language to one level and kept searching for its implementation every day. One fine day I got to know about Brython, which aims to replace Javascript for web scripting. It allows you to directly use Python Scripts on a webpage to handle DOM (Document Object Model) elements and events, all using our favorite language Python. Let’s dive into how to implement such kind of script for your next project and how I won a competition (2nd position) using this technology!

Before that, if you want to explore the android side of Python then make sure to check out my Android App in Python Series on Medium.

Photo by Luca Bravo on Unsplash

What is Brython?

Javascript is considered as the language of the web which enables interactivity on the webpage. Nobody wants to surf static pages that can be built using HTML and a bit of CSS. Brython offers an intuitive way to interact with web page elements using Python. In the past…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Kaustubh Gupta
Kaustubh Gupta

Written by Kaustubh Gupta

Analytics Engineer building AI-powered data systems. Writing practical deep-dives on Analytics Engineering, GenAI workflows, and scalable data platforms.