~/talk

Making Your Documentation Interactive with PyScript

Talkat PyCon US 2024 · 2024-05-15..05-23· [python, web-platform]
links:none on file
slides:none on file

Claim: documentation examples become runnable in the browser with no backend or installation by embedding PyScript (CPython via Pyodide) into pages. Tooling integrates with Sphinx and MkDocs, deploys to GitHub Pages or readthedocs, and installs packages from PyPI, the pyodide repo, or wheel URLs. Pages use interactive code cell editors, setup tags and shared environment options to share interpreter state. Worker threads and SharedArrayBuffer require secure contexts. Works for pure‑Python and many scientific packages; limitations include threading, native GUI and raw sockets.

AI-written summary · about

  1. 0:00Interactive docs with PyScript
  2. 1:04Problem with static examples
  3. 3:11What we’ll cover
  4. 3:53Jeff Glass and PyScript
  5. 5:40PyScript runs Python in browser
  6. 7:46PyScript editor cells concepts
  7. 13:46Editor cell config tags
  8. 14:52PyScript with Sphinx/MkDocs
  9. 19:03Deploying PyScript docs
  10. 22:36Secure contexts and buffers
  11. 24:20PyScript: what works vs what doesn’t
  12. 27:05PyScript resources
  13. 28:08Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.