Python In The Browser! PyScript First Look

In this video, we will look at the brand new PyScript framework, which uses Web Assembly and Pyodide to write Python and use Python Packages right in our HTML. And no, it will NOT replace JavaScript.

🐍 PyScript Website & Examples:
https://pyscript.net
https://github.com/pyscript/pyscript/tree/main/examples

πŸ“˜Check out my 300 page Web Dev Guide:
https://traversy.gumroad.com/l/web-dev-guide

πŸ’» All Courses
https://traversymedia.com

πŸ’– Show Support
Patreon: https://www.patreon.com/traversymedia
PayPal: https://paypal.me/traversymedia

πŸ‘‡ Follow Me On Social Media:
Twitter: https://twitter.com/traversymedia
Instagram: https://www.instagram.com/traversymedia
Linkedin: https://www.linkedin.com/in/bradtraversy

Timestamps:
0:00 - Intro
1:45 - How it works
4:18 - Getting Started
5:17 - Disable formatOnSave
6:06 - Writing Python in HTML
6:37 - Mixing JavaScript
7:02 - Targeting DOM elements
8:15 - REPL
8:54 - Math module
9:18 - Env & 3rd party packages
11:10 - Using a separate .py file
13:16 - Handling events
14:45 - Shuffle array
16:04 - Using Element()
18:00 - Using multiple files
20:22 - Wrap up

Home