<br><br><div class="gmail_quote">On Thu, Jul 15, 2010 at 3:22 PM, Fernando Perez <span dir="ltr"><<a href="http://fperez.net">fperez.net</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Thu, Jul 15, 2010 at 11:07 AM, Brian Granger <<a href="mailto:ellisonbg@gmail.com">ellisonbg@gmail.com</a>> wrote:<br>
><br>
> Definitely hard to get right and terminal based frontends will<br>
> definitely need something like flush.  Let's see how it goes with this<br>
> approach.<br>
<br>
</div>Though absent a real event loop with a callback model, there it will<br>
need to be implemented with a real sleep(epsilon) and a total timeout.<br>
 Terminal frontends will always simply be bound to flushing what they<br>
can and then moving on if nothing has come in a given window they wait<br>
for.  Such is life when your 'event loop' is the human hitting the<br>
RETURN key...<br></blockquote><div><br>This may have been lost in the stream of messages, but you can see my current implementation of flush here:<br><br><a href="http://github.com/epatters/ipython/commit/2ecde29e8f2a5e7012236f61819b2f7833248553">http://github.com/epatters/ipython/commit/2ecde29e8f2a5e7012236f61819b2f7833248553</a><br>
<br>I'm not sure if my approach is better or worse than a using an epsilon for sleep.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Evan, quick question: when I open your frontend_widget, I see 100% cpu<br>
utilization all the time.  Do you see this on your end?<br></blockquote><div><br>I hadn't noticed this before (probably because I never pay attention to what my CPU utilization is), but I am seeing this on my end. Thanks for pointing it out; I'll look into it.<br>
<br>Evan<br></div></div>