From mboxrd@z Thu Jan 1 00:00:00 1970 From: kuangdash Subject: Suggestion about org-babel: executing source block asynchronously Date: Wed, 7 Oct 2015 22:19:29 +0800 Message-ID: <56152A01.3EC491.19053@m12-14.163.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_6E4563F8-2D4C-4DDE-B3DF-428DBAE9C81D_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjpZZ-0001wM-9u for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 10:20:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjpZW-0003U9-5r for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 10:20:01 -0400 Received: from m12-14.163.com ([220.181.12.14]:43383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjpZS-0003PK-DJ for emacs-orgmode@gnu.org; Wed, 07 Oct 2015 10:19:58 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --_6E4563F8-2D4C-4DDE-B3DF-428DBAE9C81D_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Sometime I will run source block (such as python) which take a long time be= fore I=C2=A0 get the final result. Then I thought about whether or not the source block can be executed asynch= ronously, and the answer is =E2=80=98YES=E2=80=99. But it seems to be difficult for me to hack the code, so I just talk about = the process of it: 1)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 When execute source block, cover it up wit= h the =E2=80=9Cexecuting=E2=80=9D overlay. 2)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 When get the final result, get the =E2=80= =9Cexecuting=E2=80=9D overlay position. 3)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Add the result below the =E2=80=9Cexecutin= g=E2=80=9D overlay position, and then remove the overly. It can be done! =C2=A0How about it?=20 Regards --_6E4563F8-2D4C-4DDE-B3DF-428DBAE9C81D_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Sometime I will run source block (such as python) which take a lo= ng time before I  get the final result.

Then I thought about whether or not the source block can be ex= ecuted asynchronously, and the answer is =E2=80=98YES=E2=80=99.<= /span>

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 =E2=80=9Cexecuting=E2=80=9D overlay.

2)      When get th= e final result, get the =E2=80=9Cexecuting=E2=80=9D overlay position.<= /o:p>

3)      Add the result below the =E2=80=9Cexecuting=E2=80=9D overlay posit= ion, and then remove the overly.

 

It can be done!  Ho= w about it?

 

Regards

 

= --_6E4563F8-2D4C-4DDE-B3DF-428DBAE9C81D_--