Hacker News new | ask | show | jobs
by charlieyu1 1065 days ago
Good for developing ideas that you can add small code fragments gradually and see results immediately. And if it gets big enough, chances are that you have a good idea that makes it worth the time to refactor your notebook into production code.
1 comments

I refactor my code into functions as I go.

Then I can easily put them into a Python file and import them from the notebook.

Easy peasy and very nice for iterative development.

Just started down this path, its such a nice workflow. I find that my notebook ends up with being a great overview of my codebase without going into the details of every function.