~/talk

Incrementally Developing Your Web App With Jupyter and Klein

Talkat Python Web Conf 2020 · 2020-06-17..06-19· [developer-experience, python]
linkedin:moshezadka
slides:none on file

Builds a running Klein/Twisted web app inside a Jupyter kernel and modifies endpoints without restarting; shares the async event loop so requests and Jupyter code run together. Demonstrates a five-second mock multiplication backend, shows naive serial calls take ~10s while issuing both requests then using gatherResults returns both in ~5s, implements XML-validated templates (useful error line numbers), adds sessions/CSRF-protected POST handling and confirms each incremental change works live in the browser.

AI-written summary · about

  1. 0:00Introduction
  2. 2:58Moshe Zadka
  3. 3:24Interactive Development Environment
  4. 4:17Auto Reloading
  5. 5:19Writing the Application
  6. 5:31Twisted and Jupiter
  7. 6:33Inputting
  8. 7:05Putting things together
  9. 7:50And have the endpoint
  10. 8:06application
  11. 8:23working
  12. 8:48failure
  13. 9:00success
  14. 9:50content
  15. 10:17hello world
  16. 10:42one page
  17. 11:31hello world content
  18. 12:01dynamic computation
  19. 12:29responding to inputs
  20. 12:39adding a number
  21. 13:04interpolated result into HTML
  22. 13:20safe
  23. 13:50alternate reality
  24. 16:13multiplication
  25. 17:47speed test
  26. 18:19slow back end
  27. 19:34delayed multiplication without yield
  28. 20:34I chose the same URL
  29. 21:19The backend is slow
  30. 24:42Euclidean Distance
  31. 26:12Delayed Multiplication
  32. 26:29Math Formula Comment
  33. 27:05Math Formula Code
  34. 28:07Is it worth it
  35. 29:00HTML
  36. 29:14XML String
  37. 30:00Generic Greeting
  38. 30:23Attribute
  39. 30:35Interpolating
  40. 30:46Rendering
  41. 31:33Scaling
  42. 31:52Error Messages
  43. 32:08Fixing Error Messages
  44. 33:04Greetings
  45. 34:30Computation
  46. 35:04Default Name
  47. 35:20Renderer
  48. 35:52Name
  49. 36:51Wait a bit
  50. 37:23Posting is hard
  51. 38:42Memory Session Store
  52. 39:00PostRender
  53. 39:27CSRF
  54. 39:53The Square
  55. 40:04CSRF Protection
  56. 40:14Outro
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.