~/talk

Tips to Level-Up Your Shiny for Python Applications

Talkat PyData Global 2024 · 2024-12-03..12-05· [python, developer-experience]
links:none on file
slides:none on file

Built an adaptive filter component on Shiny for Python that prevents empty DataFrames by having filters update each other, using pandas Index.intersection instead of set/list conversions to keep types consistent. Code adds Python type hints to document contracts, refactors repeated UI logic into modules to reduce coupling, and uses pytest and pyite to simulate clicks and assert behavior. A WebAssembly demo runs without installs, and the adaptive filters work: selecting lunch never produces an empty result.

AI-written summary · about

  1. 0:00Introduction
  2. 1:29Shiny for Python and reactivity
  3. 7:22Minimal example with filters
  4. 9:08Keep variable types consistent
  5. 13:08Use Python type hints
  6. 16:41Know when to use Shiny modules
  7. 21:17Make your Shiny app testable
  8. 23:03Improve developer experience
  9. 27:42Shiny for Python vs R and others
  10. 29:51Closing and Q&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.