There’s an example included in the PR that’s referenced in that post. It also discusses some of the background and there’s a mention that things may change soon (given PyScript is so new) but it should help you get something basic working in the short-term