r/IPython • u/[deleted] • Feb 08 '14
How does IPython Notebook fit into your development cycle?
Hi all!
I'm just getting started with using Python in a serious way. I've programmed many different languages (typically using an Eclipse-based IDE) for many years, but I'm new to the IPython Notebook interface. I love the organization possibilities and the ability to perform the analysis and presentation within the same environment, but I'm curious how others are using this feature.
Specifically, how do you perform 'serious' programming in Python which will then end up being used in an IPython Notebook (to be shared with a team). I'm imagining a process of developing the class modules within a separate file which then gets included into the IPython presentation/analysis file, but it'd be great to know how others do it. What's your process?
2
1
u/rhiever Feb 09 '14
I almost exclusively use IPython Notebook for data analysis and explorative programming. I'd imagine there's other IDEs out there -- maybe Spyder? -- that are better suited for developing modules of Python code.
1
Feb 09 '14
I prototype lot of number oriented code in ipython notebook and then port them into standalone scripts
1
u/latz-twn Feb 09 '14
I usually use Ipython's console to test/try-out new libraries and their features, and to try out typical use cases before adding them to my code base. Ipython's notebook feature I found really useful for tutorials, e.g. explaining concepts of python by demonstrating them in live, a really nice feature.
1
u/kigurai Feb 09 '14
I use the notebook for two things:
To try out new ideas, and libraries. I could do this in my IDE of choice (Spyder), but for some reason I usually do it in the notebook.
For more data intensive tasks. I usually have multiple processing steps (loading, preprocessing, filtering, ...) and the notebook is helpful as I can retain the data in memory and don't have to write some kind of stage-loaders for writing/loading the data at each step.
For actual implementation, i.e. making a reusable module, I use an IDE (Spyder). Usually code starts its life in the notebook, and I then either copy-paste it, or rewrite it as a module.
3
u/steveforbesnash Feb 08 '14
My workflow is similar to the one described in this article