Back to archive

Thread

5 tweets

1
Me and @DJCordhose have been discussing how to go from notebooks to production and back, and in an ideal world we agreed that you'd start copying parts that are stable to a library that you'd also be using in production and re-import those. Here's a 🧶 why I was wrong
3
3/5 You could move parts into python modules and use the autoreload feature in Jupyter. And this technically works (apart from minor issues), but I'm finding it breaks the agility of what I'm doing.
4
4/5 Suddenly you need to think about whether what you're doing breaks other analyses you have elsewhere, or production code. You'd need to switch to test driven development to make sure you don't, and it breaks the flow.
5
5/5 So yeah, always copy and paste and work in notebooks and then painfully re-integrate your changes? Also doesn't sound good. But maybe what we really need is a better tool for REPL-based dev that's not just a long string of cells to navigate manually.