<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/run-python-in-your-html-2cwrv6d3g" -->

---
title: Run Python in your HTML | daily.dev
description: PyScript is a framework that allows users to create rich Python applications in the browser using HTML’s interface. It aims to give users a first-class...
canonical: https://daily.dev/posts/run-python-in-your-html-2cwrv6d3g
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Run Python in your HTML | daily.dev
og:description: PyScript is a framework that allows users to create rich Python applications in the browser using HTML’s interface. It aims to give users a first-class...
og:url: https://daily.dev/posts/run-python-in-your-html-2cwrv6d3g
og:image: https://api.daily.dev/og/posts/2CWRv6D3G.png
og:image:alt: Run Python in your HTML
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Python in your HTML

**[Hacker News](https://daily.dev/sources/hn)** · 2 min read · 385 upvotes · 29 comments

## Summary

PyScript is a framework that allows users to create rich Python applications in the browser using HTML’s interface. It aims to give users a first-class programming language that has consistent styling rules, is more expressive, and is easier to learn. PyScript is just HTML, only a bit (okay, maybe a lot) more powerful, thanks to the rich and accessible ecosystem of Python libraries.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://pyscript.net/>

## Community discussion

Top comments from developers on daily.dev.

**@murtazajoo** · 3 upvotes

> This may be the  new age of webdev

**@ghost** · 1 upvotes

> Anaconda 🐍 got you `py-script`!

**@ajaydhangar49** · 1 upvotes

> Awesome

**@morphtw** · 1 upvotes

> Hope it will not fade in dust.

**@cha9lipo** · 1 upvotes

> 99% problems fixed haha thanks

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#python](https://daily.dev/tags/python), [#html](https://daily.dev/tags/html)

[View this post on daily.dev](https://daily.dev/posts/run-python-in-your-html-2cwrv6d3g)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Run Python in your HTML","url":"https://daily.dev/posts/run-python-in-your-html-2cwrv6d3g","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/run-python-in-your-html-2cwrv6d3g"},"datePublished":"2022-05-02T10:03:57.415Z","dateModified":"2022-05-02T10:03:57.415Z","description":"PyScript is a framework that allows users to create rich Python applications in the browser using HTML’s interface. It aims to give users a first-class...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/660364826d933a8339a75247edb4b252","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/660364826d933a8339a75247edb4b252","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":29,"discussionUrl":"https://daily.dev/posts/run-python-in-your-html-2cwrv6d3g","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":385},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":29}],"keywords":"webdev,javascript,python,html","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Run Python in your HTML"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/run-python-in-your-html-2cwrv6d3g","comment":[{"@type":"Comment","text":"This may be the  new age of webdev","datePublished":"2022-05-06T10:22:50.328Z","url":"https://daily.dev/posts/2CWRv6D3G#c-ArUKuEeH2","author":{"@type":"Person","name":"MURTAZA Joo","url":"https://daily.dev/murtazajoo","image":"https://lh3.googleusercontent.com/a-/AOh14GhsMBwD2xE0NQ6QiwdP-JqNRo_AMxKxLLv5C1iGcw=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Anaconda 🐍 got you py-script!","datePublished":"2022-05-03T08:32:27.638Z","url":"https://daily.dev/posts/2CWRv6D3G#c-3tUK43e9t","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Awesome","datePublished":"2022-12-20T11:30:13.793Z","url":"https://daily.dev/posts/2CWRv6D3G#c-mkIhjxXVF","author":{"@type":"Person","name":"Ajay Dhangar","url":"https://daily.dev/ajaydhangar49","image":"https://lh3.googleusercontent.com/a/AEdFTp52X5ua8AxWeNfDimlEwhoq1hugDfaOPrE7aEb9hQ=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Hope it will not fade in dust.","datePublished":"2022-05-09T09:29:22.464Z","url":"https://daily.dev/posts/2CWRv6D3G#c-nutCJj3UI","author":{"@type":"Person","name":"Zoran Topić","url":"https://daily.dev/morphtw","image":"https://avatars.githubusercontent.com/u/83453128?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"99% problems fixed haha thanks","datePublished":"2022-05-07T10:54:10.564Z","url":"https://daily.dev/posts/2CWRv6D3G#c-pJpYZ53WU","author":{"@type":"Person","name":"CHA9LIPO","url":"https://daily.dev/cha9lipo","image":"https://media.daily.dev/image/upload/f_auto/v1641686950/avatars/yZMmOXYbhIuP8nTzFEET9"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

