emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Suggestion about org-babel: executing source block asynchronousl


From: Nicolas Goaziou
Subject: Re: [O] Suggestion about org-babel: executing source block asynchronously
Date: Sun, 11 Oct 2015 10:12:52 +0200

Hello,

kuangdash <address@hidden> writes:

> Sometime I will run source block (such as python) which take a long time 
> before I  get the final result.
> Then I thought about whether or not the source block can be executed 
> asynchronously, and the answer is ‘YES’.
> But it seems to be difficult for me to hack the code, so I just talk about 
> the process of it:
>
> 1)      When execute source block, cover it up with the “executing” overlay.
> 2)      When get the final result, get the “executing” overlay position.
> 3)      Add the result below the “executing” overlay position, and then 
> remove the overly.
>
> It can be done!  How about it?

It could be a start. 

However, "add the result" in not simple, because you need to maintain
a queue in order to insert results back during idle time. Also,
insertion should preserve current window visibility so as to prevent
jumping around.

You may also need to cover the results part of the code block, if any.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]