I am writing my script interactively with IPython. This is what I currently do:
- write a chunk of code,
- run in ipython with "run -i file_name.py".
- make changes and repeat 2 until I think it is OK .
- comment out the entire previous chunk.
- write new chunk of code that is based on the previous one.
- go back to step 2.
- ......
Is there more efficient way? Can I start a script from a specific line while using all the variables in current namespace?