~/talk

Clean Code in Jupyter notebooks, using Python

Talkat PyData Berlin 2017 · 2017-06-23..06-25· [python]
links:none on file
slides:none on file

Advocates concrete rules: keep each notebook small—four to ten cells per hypothesis—and make each cell produce one output per cell so readers follow the story; move reusable utilities into a shared library but keep the core analysis in the notebook; add tests using the pytest notebook plugin; serve a shared Jupyter server for reproducible environments; run notebooks from other notebooks to parametrize runs; use IPython widgets and Jupyter Dashboards to turn notebooks into products (deployed UIs on EC2 GPU instances with caching to make restart-and-run-all fast).

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Messy notebooks causes
  3. 3:54Clean code importance
  4. 5:16Clean code principles
  5. 7:20Naming best practices
  6. 8:45Clean functions in notebooks
  7. 10:53Comments role
  8. 12:40Python clean conventions
  9. 14:04Notebook organization
  10. 15:30Splitting strategies
  11. 16:58Reusing code utilities
  12. 18:00Secrets in notebooks
  13. 20:05Cell output clarity
  14. 21:13Testing notebooks
  15. 22:16Shared servers benefits
  16. 23:19Avoiding unreproducible notebooks
  17. 24:42Prototypes to results
  18. 25:46Running notebooks
  19. 26:49Notebooks as products
  20. 27:32Version control
  21. 29:18Summary
  22. 29:40Q&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.