[IPython-user] Can I do %ed range:of:lines file_name.py?
Thu Nov 22 15:06:21 CST 2007
On Oct 25, 2007 1:41 PM, Matthew Wilson <firstname.lastname@example.org> wrote:
> Greetings all --
> I use %ed 4:6 to open a new file that contains lines 4 through 6.
> I use %ed foo.py to open my foo.py file, which most of the time is
> I tried combining the two together like this:
> %ed 4:6 foo.py
> And foo.py gets interpreted as a number, and so I get a friendly
> Is it possible to do what I'm trying to do?
Not out of the box with the syntax you propose, sorry. As a
workaround, you can 'save as' in your editor and in subsequent
invocations, call '%ed your_new_filename.py'.
More information about the IPython-user