~/talk

Running (snippets of) Python in the browser

Talkat PyData Amsterdam 2016 · 2016-03-12..03-13· [python, web-platform]
slides:none on file

Three approaches to run Python in the browser are compared and concrete claims are given: PyScript is a transpiler that generates JavaScript, installs via pip/conda, and trades some Python semantics for speed so it is faster than most other Python-in-the-browser solutions; JavaScript-based interpreters behave more like real Python but are about 100x slower; compiled interpreters (PyPy.js style) yield near-native speed but load a VM of about 13 megabytes. PyScript is used for Bokeh client callbacks, Flexx widgets, and a Clinical Graphics image-annotation app and those demos work.

AI-written summary · about

  1. 0:00Running Python in browser
  2. 1:51Approaches to Python in browser
  3. 3:41JavaScript Python interpreters
  4. 4:46WebAssembly Python interpreters
  5. 6:57Frameworks and history
  6. 8:02Comparing Python-in-browser solutions
  7. 10:13Choosing the right approach
  8. 12:17PyScript as transpiler
  9. 14:48PyScript with Bokeh callbacks
  10. 16:40PyScript with Flex sync
  11. 18:37Medical image annotation with PyScript
  12. 20:02Summary and future outlook
  13. 20:50Q&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.