or in a reverse way you can open vim and use ':shell' followed by python. I prefer it that way generally<br><br><div class="gmail_quote">On Mon, May 24, 2010 at 6:01 PM, adm <span dir="ltr"><<a href="mailto:avinash.magar@gmail.com">avinash.magar@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On May 24, 4:59 pm, Jean-Michel Pichavant <<a href="mailto:jeanmic...@sequans.com">jeanmic...@sequans.com</a>><br>


wrote:<br>
<div class="im">> adm wrote:<br>
> > I am newbie to python.<br>
> > Is there a way to launch vi/vim or any other editor from python<br>
> > console? I find editing in console very limiting. I can either have a<br>
> > console which launches vi and remembers it's content and then executes<br>
> > or invoke python interpreter from vim.<br>
><br>
> > Since I could not find anything I wrote this:<a href="http://python.pastebin.com/MFTHxuLe" target="_blank">http://python.pastebin.com/MFTHxuLe</a><br>
> > Please suggest if there is any better alternative for this.<br>
> > I tried googling for this but could not find anything interesting.<br>
><br>
> > Thanks,<br>
> > Adm<br>
><br>
</div><div class="im">> import os<br>
> os.system.('vi')<br>
><br>
> or you can start an ipython shell<br>
>  and start vi using<br>
> !vi<br>
<br>
</div>Thanks. I wanted something like ipython.<br>
I will give it a try.<br>
<div><div></div><div class="h5">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>