freude
freude

Reputation: 3832

Using magic "ed" in IPython without running a script afterwards

When I use ed in IPython, I have got my script running after closing the editor. Is it possible to edit without running afterward in IPython?

Actually, I would like to have both options.

Upvotes: 2

Views: 384

Answers (1)

the
the

Reputation: 21941

Use %edit -x

[1]: %edit? 

-x: do not execute the edited code immediately upon exit. This is 
mainly useful if you are editing programs which need to be called with
command line arguments, which you can then do using %run.

Upvotes: 2

Related Questions