Re: reloading in shell

2010-06-25 Thread euan.godd...@googlemail.com
LOL. Yeah bpython is interesting. Some of the features were pretty nice last time i tried it, but it was a bit flaky so I stuck with iPython. Could have well improved since then though. On Jun 25, 12:26 pm, Kenneth Gonsalves wrote: > On Friday 25 June 2010 16:48:49 euan.godd...@googlemail.com wro

Re: reloading in shell

2010-06-25 Thread Kenneth Gonsalves
On Friday 25 June 2010 16:48:49 euan.godd...@googlemail.com wrote: > > The latter, as I don't have to do at across 200 different boxes, I > > just edit one file in my NFS home directory? > > That was joke btw. But for one person running on a single machine with > plenty of resources, I honestly th

Re: reloading in shell

2010-06-25 Thread euan.godd...@googlemail.com
> The latter, as I don't have to do at across 200 different boxes, I > just edit one file in my NFS home directory? That was joke btw. But for one person running on a single machine with plenty of resources, I honestly think that iPython is the best option. I had a read of the link you posted and

Re: reloading in shell

2010-06-25 Thread Tom Evans
On Fri, Jun 25, 2010 at 11:55 AM, euan.godd...@googlemail.com wrote: >> To be a bit pedantic, python itself supports many of these features >> (tab completion, history) if you tell it to. > > What's easier, sudo easy_install iPython, or making alterations to the > existing python interpreter and s

Re: reloading in shell

2010-06-25 Thread Kenneth Gonsalves
On Friday 25 June 2010 16:25:22 euan.godd...@googlemail.com wrote: > > To be a bit pedantic, python itself supports many of these features > > (tab completion, history) if you tell it to. > > What's easier, sudo easy_install iPython, or making alterations to the > existing python interpreter and s

Re: reloading in shell

2010-06-25 Thread euan.godd...@googlemail.com
> To be a bit pedantic, python itself supports many of these features > (tab completion, history) if you tell it to. What's easier, sudo easy_install iPython, or making alterations to the existing python interpreter and still not having colour :) ? -- You received this message because you are su

Re: reloading in shell

2010-06-25 Thread Tom Evans
On Fri, Jun 25, 2010 at 4:13 AM, Shawn Milochik wrote: > Install ipython. > > It has a lot of great features, including retaining history. > > If it's installed, Django will use it by default if you run manage.py shell. > > Shawn > > Sent from my iPhone 4, for which I waited in line for six hours

Re: reloading in shell

2010-06-25 Thread euan.godd...@googlemail.com
iPython is great for this sort of thing, especially the code completion with tab. You could also use the reload statement. This only works when you do: import foo.bar.MyClass and doesn't always work correctly, but it might save a bit of typing. On 25 June, 06:24, Kenneth Gonsalves wrote: > On

Re: reloading in shell

2010-06-24 Thread Kenneth Gonsalves
On Friday 25 June 2010 08:43:08 Shawn Milochik wrote: > Install ipython. > > It has a lot of great features, including retaining history. > > If it's installed, Django will use it by default if you run manage.py > shell. thanks - that with django-extensions has just made my life much easier.

Re: reloading in shell

2010-06-24 Thread Shawn Milochik
Install ipython. It has a lot of great features, including retaining history. If it's installed, Django will use it by default if you run manage.py shell. Shawn Sent from my iPhone 4, for which I waited in line for six hours like a fool on release day. -- You received this message becaus

reloading in shell

2010-06-24 Thread Kenneth Gonsalves
hi, when I run python manage.py shell, I find each time there is a change in code or an error I have to exit the shell and re enter it. Which means I lose the history - is there an easier way to do this? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this me