Ticket #234 (new defect)

Opened 3 years ago

Use of %edit precludes saving sessions as a worksheet

Reported by: brendanarnold Assigned to: fperez
Priority: normal Milestone:
Component: ipython Version:
Severity: normal Keywords: edit multiline session logging
Cc:

Description

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).