~/talk

Finding undeclared & unused dependencies in your notebooks

Talkat PyData Global 2023 · 2023-12-06..12-08· [developer-experience]
slides:none on file

Conference analysis shows about 42% of executed notebooks fail from missing deps; only 3.9% reproduce results. FawltyDeps finds undeclared imports and declared but unused packages, prints file and line, and maps import names to package names (can create a temporary venv with install-deps when needed). Works on Python scripts and Jupyter notebooks, emits JSON, and integrates as a pre-commit hook or CI check so commits and PRs fail fast when undeclared or unused dependencies appear.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Reproducibility in notebooks
  3. 3:35Dependency declaration issues
  4. 5:00Python dependencies basics
  5. 7:50Undeclared vs unused deps
  6. 8:50FAdeps tool intro
  7. 9:34FAdeps output guide
  8. 10:56FAdeps configuration
  9. 12:00FAdeps in pre-commit
  10. 13:27Pre-commit catches undeclared
  11. 14:08Pre-commit catches unused
  12. 14:30FAdeps in GitHub Actions
  13. 15:32FAdeps in PR checks
  14. 16:15Import to package mapping
  15. 19:01Finding Python environments
  16. 20:25Dependency name mapping demo
  17. 22:12Dependency analysis complexities
  18. 23:38Summary
~/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.