3 ms·
You can very easily move some functions out of a notebook and into a proper module, that can be included in a program / production system. Autoreload extension
by jononor 9y ago
You can very easily move some functions out of a notebook and into a proper module, that can be included in a program / production system. Autoreload extension in Python Jupyter notebooks makes it extra nice.
It is also easy, and convenient to write py.test style tests inside a notebook, just call them manually inside the block. Then when you move it out to module, you have tests that will automatically be picked up by your testrunner.
- taeric 9y agoYou can. Most don't. And moving something from a free form environment to a tested continuous delivery one, is not automatic. Luckily, the performance constraints of most environments are such that python is not an automatic deal breaker nowadays. That said, correctness of code proofs are usually different from correctness of machine learning algorithms. Such that mixing them seems to just fool both sets of practitioners.
- jononor 9y agoMy point is mostly that it that Jupyter far from as bad as spreadsheets (at least commonly used implementations). Correctness of machine learning is a complicated problem generally.
- taeric 9y agoMeh. With some of the practices I've already seen, at least spreadsheets always show the data. You send me a spreadsheet, I can verify most of it. Send me a notebook, I can typically only audit what you did.