PyScript - Python in the Browser
summary
PyScript runs Python in the browser by bootstrapping Pyodide or MicroPython compiled to WASM and loading packages on demand. Demos include a Python-driven slideshow, a Folium map, a sampling profiler UI and a spreadsheet; performance pain points are specific: marshaling crosses cost ~50 ns each leading to batching fixes, and imports once show imports load ~626 modules causing a 15 s stall. A small UI toolkit (LTK 1700-line toolkit) and pragmatic JavaScript backends make the apps usable.
AI-written summary · about
chapters (16)
- 0:00PyScript introduction
- 4:59Python in finance/data science
- 8:50Solving Python install pain
- 12:05First PyScript demo
- 13:09PyScript IDE example
- 16:01Folium geographical data
- 19:17Personal homepage with PyScript
- 20:20Profiling in browser
- 26:49AI goal-setting app
- 28:18Python UI toolkit for browser
- 30:02MicroPython vs Pyodide VMs
- 31:49Algorithm visualization with breakpoints
- 32:33Career growth life coach
- 32:54Browser-based Python spreadsheet
- 36:31Interactive data analysis
- 38:41Conclusion and resources
related talks
01h 39mPyScript - Writing a Python application in the browser
33mPython in the browser
32mPyScript - what you need to know
42mPyScript & Data Science- PyData stack on the Browser
02h 55mWriting Serverless Python Web Apps with PyScript
23mRunning (snippets of) Python in the browser
30mNext Level Python Applications with PyScript
44mRethinking Data Visulisation with PyScript
