PyData Global 2024

PyScript - Writing a Python application in the browser
12-04, 19:30–21:00 (UTC), General Track

Learn how to write a native Python application in the browser using WebAssembly enabled by PyScript.


Using PyScript, we will write a complete Python application from scratch that runs in the browser, creates a UI, handles user events, and uses Generative AI to create content. We will first look at the technical underpinnings of the PyScript stack. Then, we will use pyscript.com to write a To-do web app entirely in Python. To help us with our tasks, we will use generative AI to develop an action plan to finish our to-dos more effectively.

If you are attending this tutorial, you can prepare yourself to get the most out of the event:
- Explore the slides for the tutorial, written using PyScript/LTK.
- Visit pyscript.net for docs and pyscript.com for editing.
- Join the PyScript Discord Server to meet the community.
- Build your ow Todo app, see github/laffra/todo
- Get an API key for ChatGPT at OpenAI API Keys.

We assume you have basic Python skills but know little about Web technologies, such as JavaScript, CSS, or React. After this tutorial, you will be able to write your own Python web app in the browser using PyScript.


Prior Knowledge Expected

No previous knowledge expected

See also: LinkedIn post with screenshots of the Todo App we will write during this tutorial.

CEO of PySheets
map("ex-{}".format, ["Google", "Uber", "IBM", "Morgan Stanley", "Bank of America", "JP Morgan"]