[IPython-User] Invoking ipython shell in the middle of script run and using magic commands
Sun Apr 8 16:06:37 CDT 2012
I tested it again, and just calling the weave function (not %timeit) will
make this happen.
On Sun, 08 Apr 2012 15:09:51 -0500, Joon Ro <email@example.com> wrote:
> On Sun, 08 Apr 2012 14:09:03 -0500, MinRK <firstname.lastname@example.org> wrote:
>> That's precisely what IPython.embed() is for. What doesn't it do that
>> want it to?
>> On Sun, Apr 8, 2012 at 12:03, Joon Ro <email@example.com> wrote:
> Thanks. I was just not sure if I was doing it right. :)
> One thing is though, after I run %timeit a function which uses
> weave.inline (the following code -> self.c_loglogit is just a c code to
> calculate multinomial logit likelihood) to compile inline c-code in the
> embeded ipython,
> I cannot exit from the ipython console. After I give exit another
> ipython console comes right up.
> from scipy.weave import inline
> from scipy.weave import converters
> %timeit inline(self.c_loglogit,['log_p_new', 'X', 'betas_cand',
> 'ncons', 'consnobs', 'consfirstindx', 'maskindx', 'nx', 'na'],
> type_converters=converters.blitz, force=0, verbose=1)
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the IPython-User