[SciPy-user] scipy print using ipython

Xavier Gnata gnata@obs.univ-lyon1...
Sat Feb 10 10:51:10 CST 2007


Hello,

On my box I cannot reproduce this behavior with the following code:
x0 = rand(100000)
xopt = fmin_l_bfgs_b(rosen, x0, fprime=rosen_der,iprint=1)

Cheers,
Xavier
ps : iprime = "any positive value" works also well on my box.

> Hello,
>
> I am using the fmin_l_bfgs_b function in scipy. This function has a
> parameter
>
> for controling the iteration printing during the minimization. In fact
> the printing
>
> is done by the fortran routine via a command like:
>
> write (6,1002) iter,f,sbgnrm
>
> which is a print on the screen.
>
> For some reason I don't understand, when I use the routine in ipython,
> the print
>
> is done only by bunch of lines every few minutes... just like if it
> was bufferized
>
> before printing. Does someone knows the reason of this beheviour? is
> it a python,
>
> ipython or scipy problem?
>
> Cheers
>
> Emmanuel
>
> -- 
>
> Emmanuel Pécontal
>
> CRAL - Observatoire de Lyon
>
> 9, Av. Charles Andre
>
> F-69561 Saint Genis Laval Cedex
>
> tel (33) (0)4.78.86.83.76 - fax (33) (0)4.78.86.83.86
>
> email : pecontal@obs.univ-lyon1.fr
>
> ~
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   


-- 
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: gnata@obs.univ-lyon1.fr
############################################ 



More information about the SciPy-user mailing list