[IPython-User] running notebooks from a script
Tue Apr 30 12:01:45 CDT 2013
get_msg should return immediately on completion - that's just a timeout, so
it is `up to 20 seconds`. And yes, if you have a longer running cell, the
timeout should be longer - in fact, if you trust that it won't hang / die,
you can just remove the timeout.
The second timeout is small, because once the result has arrived, no more
output is being generated, so it should just be flushing the pipe. A
timeout of zero *ought* to work here, and probably would most of the time
but the short timeout is there just to be safe.
On Tue, Apr 30, 2013 at 9:51 AM, Skipper Seabold <firstname.lastname@example.org>wrote:
> On Sun, Apr 28, 2013 at 2:58 PM, MinRK <email@example.com> wrote:
> > Just to follow up - that PR has been merged, so the gists should work
> > with master and 0.13 now.
> Thanks. Got it working perfectly.
> One question. What's the assumption on timeout here 
> and here 
> It looks like, if I have a cell that may contain long-running code, I
> should set the timeout in  to be something high and  is just for
> talking to the kernel to get output status. However, if the code in
>  doesn't take, say, the 20 seconds hard-coded there, does get_msg
> still wait for the whole timeout? It looks like this might be the case
> on a cursory run.
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User