1:07:35

In this live‑coding session, Hamel Husain (moderated by Ali) introduces the fast.ai ecosystem and then demonstrates how to create, document, test, and publish a Python library entirely within Jupyter notebooks using nbdev. He starts by creating a GitHub repository from the fastai‑nbdev‑template, configures the settings.ini file, and writes code (a Card class and a Deck class) in notebooks, using nbdev export flags to generate .py modules. He adds inline documentation and assert‑based tests, builds the library with `nbdev buildlib`, generates documentation with `nbdev builddocs`, and serves it locally. He then pushes the repo, enables GitHub Pages, sets up continuous integration to run the tests, and finally publishes the package to PyPI. Throughout, Hamel answers audience questions about syncing code between VS Code and notebooks, the impact of nbdev on PyPI quality, production use of nbdev‑generated code, and broader career advice. The talk emphasizes how nbdev unifies code, tests, and docs, reduces boilerplate, encourages better software engineering practices for data scientists, and showcases the future trend of integrating software engineering into data‑science workflows.

Chapters

More from Hamel

0:31
youtube.com

Not Every Bug Needs an Eval

1d ago
47:59
youtube.com

Can Claude Build Your Evals?

1d ago
0:46
youtube.com

How to Get Your Team to Care About Evals

2d ago
12:47
youtube.com

7 Most Common AI Eval Mistakes (From Teaching 5K+ Engineers & PMs)

3d ago
40:01
youtube.com

How To Test AI Agents With Simulations

4d ago
0:43
youtube.com

Why Your LLM Judge Should Say Pass or Fail, Not 1 to 5

5d ago
0:39
youtube.com

Don't Just Slap a Chatbot on Your Product

6d ago
19:56
youtube.com

Is Opus 5.5 Better At Writing?

6d ago
1:22
youtube.com

How to Do Error Analysis When You Can't Look at the Data

1w ago
13:24
youtube.com

I Ranked Every AI Eval Concept From Worst to Best

1w ago
0:38
youtube.com

Why We Tell People to Read 100 Traces

1w ago
See all content