I'd like to save my iPython workflows into worksheets. I can almost do this using the %save command and logging, however the use of the %edit command precludes this.
Say I have defined a function using %edit and I wish to save this to a text file, typing %save _N (where N is the line where the %edit command returned) creates a blank file.
Similarly if I log a session with %logstart, even with the output flag on, when I %run the saved session again in a fresh iPython window the %edit command is re-run (rather than the output which I originally typed being included).