[IPython-User] running notebooks from a script

MinRK benjaminrk@gmail....
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 <jsseabold@gmail.com>wrote:

> On Sun, Apr 28, 2013 at 2:58 PM, MinRK <benjaminrk@gmail.com> wrote:
> > Just to follow up - that PR has been merged, so the gists should work
> fine
> > with master and 0.13 now.
> Thanks. Got it working perfectly.
> One question. What's the assumption on timeout here [1]
> https://gist.github.com/minrk/2620735#file-ipnbdoctest-py-L91
> and here [2]
> https://gist.github.com/minrk/2620735#file-ipnbdoctest-py-L96
> It looks like, if I have a cell that may contain long-running code, I
> should set the timeout in [1] to be something high and [2] is just for
> talking to the kernel to get output status. However, if the code in
> [1] 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.
> Skipper
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130430/34e480a9/attachment.html 

More information about the IPython-User mailing list