Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Python in the Browser - PyScript First Look

Traversy Media via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the brand new PyScript framework in this 22-minute video tutorial. Learn how to write Python and use Python packages directly in HTML using Web Assembly and Pyodide. Discover the basics of PyScript, including how it works, getting started, writing Python in HTML, mixing with JavaScript, targeting DOM elements, using REPL, and working with the Math module. Dive into more advanced topics such as environment setup, incorporating third-party packages, using separate Python files, handling events, shuffling arrays, and managing multiple files. Gain insights into PyScript's capabilities and limitations, understanding that while it offers exciting possibilities, it is not intended to replace JavaScript in web development.

Syllabus

- Intro
- How it works
- Getting Started
- Disable formatOnSave
- Writing Python in HTML
- Mixing JavaScript
- Targeting DOM elements
- REPL
- Math module
- Env & 3rd party packages
- Using a separate .py file
- Handling events
- Shuffle array
- Using Element
- Using multiple files
- Wrap up

Taught by

Traversy Media

Reviews

Start your review of Python in the Browser - PyScript First Look

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.