From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0DrWD4xjhWA6WwAAgWs5BA (envelope-from ) for ; Sun, 25 Apr 2021 14:41:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gJSAC4xjhWAdEwAAB5/wlQ (envelope-from ) for ; Sun, 25 Apr 2021 12:41:48 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B0D5D1E2AD for ; Sun, 25 Apr 2021 14:41:47 +0200 (CEST) Received: from localhost ([::1]:55492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lae54-0004io-BY for larch@yhetil.org; Sun, 25 Apr 2021 08:41:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lae4W-0004iT-QA for emacs-orgmode@gnu.org; Sun, 25 Apr 2021 08:41:12 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:41568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lae4U-0002tu-8U for emacs-orgmode@gnu.org; Sun, 25 Apr 2021 08:41:12 -0400 Received: by mail-ed1-f54.google.com with SMTP id i24so2925181edy.8 for ; Sun, 25 Apr 2021 05:41:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WSolSxlgIhQkGLCc75As6a4Y0jqRFTTAXMduOp9uDFQ=; b=ZrIFdDKwLr0Zclze29ugB4Zi1QBc+cD0dDSFKw36EVVW7Ld/VfqHbEiQx/CY6k8oCe uylZg748OBFGHmfnbvnDxBleMugGNZEj/7woXiMTDzqC+OaeKDJ1j7S5sVLNvSmOIR71 Jup+8YczfJvOtRpJqnH5gEmUej/i1TCL6ExUegsW37aXCt+25YoamSs51GOgCRiGNWdv o5mOKnDUudtEzZAmLOHf97Q12JE47fmv5Or1jDB5AMOXMgkB7f0+fAst8pBTcSH6cJCY n5/pop3Mexwr8QvoQsLKmie8x4S6rSWtnGufAMhZCCgveRdwXVraya21n0Kjp+pBsHBx BLkw== X-Gm-Message-State: AOAM531pEd5zj2uBrV9ZVU4smvvGZ7jg05LrBrdVs4tZoKhXOb342FVv QChPMRKj6cXdEimRviK6Pk21q8VpFyzNxvKzG5M= X-Google-Smtp-Source: ABdhPJxPe6PThGppSgA81vZ0/Xh/fbCANQiMIPVpubV56cEo8vgSP4bx6YzIRLiD7loRd8QXJlWRaT8JRhGH6oaDPe4= X-Received: by 2002:a50:ed0c:: with SMTP id j12mr8614900eds.12.1619354465348; Sun, 25 Apr 2021 05:41:05 -0700 (PDT) MIME-Version: 1.0 References: <87h7qi2l2m.fsf@gmail.com> <87lfdatkys.fsf@gmail.com> <871rczg7bi.fsf@gmail.com> <87h7lrcxhg.fsf@kyleam.com> <877dkqx4kn.fsf@gmail.com> <874kfudesx.fsf@gmail.com> In-Reply-To: <874kfudesx.fsf@gmail.com> From: ian martins Date: Sun, 25 Apr 2021 08:40:54 -0400 Message-ID: Subject: Re: [PATCH] Async session eval (2nd attempt) To: Jack Kamm Content-Type: multipart/alternative; boundary="000000000000ac30f105c0cb5758" Received-SPF: pass client-ip=209.85.208.54; envelope-from=ianxm1@gmail.com; helo=mail-ed1-f54.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kyle Meyer , Org-Mode mailing list , Timothy Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619354507; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=WSolSxlgIhQkGLCc75As6a4Y0jqRFTTAXMduOp9uDFQ=; b=bth88pteFbOzYqzoaWX3ThvO/eoTPFc9IH+Rv+klhZIoJFcf5t3jTKl/QjcGpu6xUm/D1J lJu92L954gPtcljJb7aYVUiemYDYATRtZz7nYg2H8ztsClQQ6d3OaKragDSaS6Wg89G5CF Q6SXkHGFbFKC5PW+Rz+TlL2OwGcivdPTZTchx1urF2Up95yzMNj00f3Ocp5GndybWA6mAR FzJLfgtCrUauc10aN654Qp13gUndC13qmos/S/ydaQTR2v0HfK4xIwCr4dKfus0hKSUxXT m3Nb50islrjal2O1tZw4+UEXkGKwBqe3YK6lunXZ52xO1bTc7bxFK2kIFY6iwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619354507; a=rsa-sha256; cv=none; b=fsvHU5tcOgJwKdXqG3j3XH/Iynq/xKPttCmIkZP6V+kaZM0UglolKtCVfuEdUzblIteTtB 6rKaGDxlKrbJ2UBnGP3Q9sWyAGcAGrI3H4rz/FpZNMuXkObcA92T1798h/PWEAhAj0RMW0 IOCQpHZ0ydY15WgTpfzTBU38+DvhNrtlEgdWcpTYp7Xl0dNP1oTTU+JWXRIooSu6sRvUi2 O8DJ8UAJhPsz4t39U+kjplLN/mSXjyUvp1SPtYVB8+N3Kjzf0rtp4c4vNyN9KjybO0zs6i qfYKiovZEsjC0zHd4CQ8fsASANitnG/141XVG/sRlri0SGUTy1ZA1+TELIgWbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=jhu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=jhu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B0D5D1E2AD X-Spam-Score: -2.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: fFHizDRvk0jl --000000000000ac30f105c0cb5758 Content-Type: text/plain; charset="UTF-8" I gave this a try and it works for me. One thing I noticed is that if you run a call asynchronously, the final result ends up under the source block instead of the call. In the example below both RESULTS were written after I ran the call. #+name: test-call #+begin_src python :results output import time time.sleep(5) print("done") #+end_src #+RESULTS: test-call : done #+call: test-call() :session :async #+RESULTS: : 70e844920752b3411170716dc450c50f On Sun, Apr 25, 2021 at 3:06 AM Jack Kamm wrote: > Hi Timothy, > > > This is moving at a glacial pace, but I'd love to see this merged --- > > there's clearly a lot of interest in this from the community if not > > within this mailing list (ob-async which is more limited has 250 stars > > on GitHub). > > Yes, this has taken far too long -- sorry about that. > > There have been a few things going on in my life recently, among them a > job change. I am in the process of trying to get my FSF copyright forms > approved at my new job. I think this will eventually happen, but the > process is moving slowly. > > My last update on this thread was shortly before changing jobs, and I > decided not to merge until I was sure I'd be able to stick around to > maintain it. > > If someone is willing to apply the final tweaks and help with maintenance > of this functionality, please go ahead and merge this in. Otherwise, I'll > merge this as soon as I've got my paperwork approved and am back in action. > > Jack > > --000000000000ac30f105c0cb5758 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I gave this a try and it works for me. One thing I no= ticed is that if you run a call asynchronously, the final result ends up un= der the source block instead of the call.=C2=A0 In the example below both R= ESULTS were written after I ran the call.

=C2= =A0 =C2=A0 #+name: test-call
=C2=A0 =C2=A0 #+begin_src python :results o= utput
=C2=A0 =C2=A0 =C2=A0 import time
=C2=A0 =C2=A0 =C2=A0 time.slee= p(5)
=C2=A0 =C2=A0 =C2=A0 print("done")
=C2=A0 =C2=A0 #+end= _src

=C2=A0 =C2=A0 #+RESULTS: test-call
=C2=A0 =C2=A0 : done
<= br>=C2=A0 =C2=A0 #+call: test-call() :session :async

=C2=A0 =C2=A0 #= +RESULTS:
=C2=A0 =C2=A0 : 70e844920752b3411170716dc450c50f

=

= On Sun, Apr 25, 2021 at 3:06 AM Jack Kamm <jackkamm@gmail.com> wrote:
Hi Timothy,

> This is moving at a glacial pace, but I'd love to see this merged = ---
> there's clearly a lot of interest in this from the community if no= t
> within this mailing list (ob-async which is more limited has 250 stars=
> on GitHub).

Yes, this has taken far too long -- sorry about that.

There have been a few things going on in my life recently, among them a job= change. I am in the process of trying to get my FSF copyright forms approv= ed at my new job. I think this will eventually happen, but the process is m= oving slowly.

My last update on this thread was shortly before changing jobs, and I decid= ed not to merge until I was sure I'd be able to stick around to maintai= n it.

If someone is willing to apply the final tweaks and help with maintenance o= f this functionality, please go ahead and merge this in. Otherwise, I'l= l merge this as soon as I've got my paperwork approved and am back in a= ction.

Jack

--000000000000ac30f105c0cb5758--