From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +PEQHpRpCmO9RQEAbAwnHQ (envelope-from ) for ; Sat, 27 Aug 2022 20:59:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oEtCHZRpCmPUgQEAG6o9tA (envelope-from ) for ; Sat, 27 Aug 2022 20:59:32 +0200 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 E34118DF0 for ; Sat, 27 Aug 2022 20:59:31 +0200 (CEST) Received: from localhost ([::1]:53646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oS11m-0004Kr-UF for larch@yhetil.org; Sat, 27 Aug 2022 14:59:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oS10M-0004Hb-Lo for emacs-orgmode@gnu.org; Sat, 27 Aug 2022 14:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oS10M-0001hW-DP for emacs-orgmode@gnu.org; Sat, 27 Aug 2022 14:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oS10M-0008In-7V for emacs-orgmode@gnu.org; Sat, 27 Aug 2022 14:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50514: 28.0.50; org inline call to python src block req C-g to break Resent-From: "Barton, Mark" Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org Resent-Date: Sat, 27 Aug 2022 18:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50514 X-GNU-PR-Package: org-mode X-GNU-PR-Keywords: To: Ihor Radchenko Cc: "50514@debbugs.gnu.org" <50514@debbugs.gnu.org>, Lars Ingebrigtsen , Augusto Stoffel Received: via spool by 50514-submit@debbugs.gnu.org id=B50514.166162665331837 (code B ref 50514); Sat, 27 Aug 2022 18:58:02 +0000 Received: (at 50514) by debbugs.gnu.org; 27 Aug 2022 18:57:33 +0000 Received: from localhost ([127.0.0.1]:57073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oS0zs-0008HL-IJ for submit@debbugs.gnu.org; Sat, 27 Aug 2022 14:57:33 -0400 Received: from mail-dm6nam12on2094.outbound.protection.outlook.com ([40.107.243.94]:12896 helo=NAM12-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oS0zP-0008Eu-KK for 50514@debbugs.gnu.org; Sat, 27 Aug 2022 14:57:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FZ7xf8lYdkUmaws65ZsXZ8MCShsG3NFluOzoFynVbp4S5n4krMj5NypqGl1FkromX0AHsgCC0FkgEGOwDJsyBqHrPbE+VJ5QlWzskmdh7p/aG3zjv85vHGyGoWl/ujrMzRuHJgCKrlNWnKsGsvYFysDo6E3N77VBexbwlxVL2O35eTWQ6Qfj192Ek6F1zKF/dG+EnmadM4SPj5h5Boy7gv1n2v7JXmVod5nyMlA/UOrGDEl3fz/i58xRgukipSseTmkRQtkh9T3JpJ01Uu5+PjEJ+16NLfpewurtDeEYZhCU5gCx70jKmRd7JrWeujlB7hw0lXPCgK8Ldh8I4F9Giw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TEgUo7Kp6cLyzA8obzVhH0DBDPhJLDUExP04wX4ejTE=; b=idpvsSJ+KOvO8/RQw6hPtEq+Jypl3I/HwzYiS6jpergjS0+VLgX5huKc1HLZZLnkdrJSt/cINCpksgiarMcdx8Nby4hwxdOVTewphEn/mOrpS3q2vHnwb7rVsSHkMh48qGj9dIzNE4OMMmhNHQDeULA5LSeOUz5oo6mYN69BGA651LMKtHf2OKJ3KiO+j9dlAdsWCdlBwRIvg8Hl8H9sOod6xBBmCob6pgDO395zCO/9LyNlYjJjCUz/q1Uvx5dcsl4R0SMV+VOpJ4wld3bj0SV8sa5CIGhRCu4wzgkHF8A/x0u8v1aySfwuMLmDcoCd5GHSCX3T2eQY24hBgyA6Tw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=disney.com; dmarc=pass action=none header.from=disney.com; dkim=pass header.d=disney.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=twdc.onmicrosoft.com; s=selector2-twdc-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TEgUo7Kp6cLyzA8obzVhH0DBDPhJLDUExP04wX4ejTE=; b=KL44dI1LQI98jQp4AGEJrmATeNPIhg3d/n8uOCLjNXkjjiPBuPtNfd8cUm8uj+RQTxqFLlrUkCah2/xgMWQiP85xWgoddva0z2CGZU2AwgEadWUm31Gnvq5rbh2+xxb7jZoUZ3OWgsi/fdXAMcmVw74uT0iFWInhqXKk8fPTt4Y= Received: from SJ0PR03MB6501.namprd03.prod.outlook.com (2603:10b6:a03:386::18) by MW4PR03MB6346.namprd03.prod.outlook.com (2603:10b6:303:11d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Sat, 27 Aug 2022 18:56:56 +0000 Received: from SJ0PR03MB6501.namprd03.prod.outlook.com ([fe80::39c2:2acb:4607:daaf]) by SJ0PR03MB6501.namprd03.prod.outlook.com ([fe80::39c2:2acb:4607:daaf%8]) with mapi id 15.20.5566.015; Sat, 27 Aug 2022 18:56:56 +0000 From: "Barton, Mark" Thread-Topic: bug#50514: 28.0.50; org inline call to python src block req C-g to break Thread-Index: AQHYuJUcra94FftNmEeOPokxU5Hjm63BLvaAgAGOeMiAAA8mgIAAT80A Date: Sat, 27 Aug 2022 18:56:56 +0000 Message-ID: References: <24B9F777-2B69-45FD-ADBB-11E7A18F7A9A@disney.com> <87wnnnjlav.fsf@gmail.com> <871r5u1e3m.fsf@gmail.com> <61CB9513-0EEC-4F46-90D6-1D208BBADFA1@disney.com> <87pmteb1ef.fsf@gmail.com> <21C76818-63E5-4DC9-A60D-2BEF33813A18@disney.com> <73383502-159B-4BD9-8836-6C8A534A7063@disney.com> <87r1dry7x0.fsf@gmail.com> <32AF1DCB-F81A-4FB7-8EB2-31B483E5E468@disney.com> <87sfy7qadr.fsf@gmail.com> <073CC0D1-9900-4613-87E8-D69EA1C11623@disney.com> <87k0jjq79k.fsf@gmail.com> <87k0jiuuzc.fsf@gnus.org> <87mtbsgxwh.fsf@gnus.org> <875yifxhbm.fsf@localhost> <875yidaks8.fsf@gnus.org> <87ler9epyy.fsf@localhost> In-Reply-To: <87ler9epyy.fsf@localhost> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3696.120.41.1.1) x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9240c8ff-4f3c-4bf3-cc4a-08da885dea06 x-ms-traffictypediagnostic: MW4PR03MB6346:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hdvRCZkT3bAiHeVaZ6g4Wd7eToykbzAwPbeRG7qgxRbcNDetha6/5lIsN6Dop8qEk8pMJu7KAS9qhbZzwxHR+UETl+4rH65fS7VaxEdXmw+aOOEusbOEdiUEQjba1xWZNpdmJ6Z4JEirWFqeAdKoOe7Zb1k5HrZ23rMqQMeOQcsNVhM8hOdxlStCklyjWh78JsGJxW/PyK4VJp5Bu3GG2UFp/H82HAM7qWSf9PyiQpg80JdnRtoYNOB1DnkUS0ru4nz+08rba0Jygftn3AEJprRiMhAWB8/BuTOy8s+AnVXZ3vIa4DtorzfHU6ss07thETjwiQKiT5bPKkcV4hDU3/IJX7rxlTaPOpWB1jwliMYp0bqvv+FrLDzA+jfndLNyi7MgI+bqjZRqYyHYHxgslj8PWbyMZ8Tuf6xpsoqnr5XuObH1ntr7KoLW8pzPpytkt7Ne9/yBNxkHYGLj0SmFNibyw9DgplaQ7PL0IcXY6vKEINUc5Pu2mgdIUaoz+udJefN3iX0bDT4yICSOCtGro+CgJWzCyEP+h45M4ez353RrcvH/bBJrA75KGUMuEC+A43KhQRRh9rgDNKP9cK/2kjuQewsUr8d1hpb2SH2cDTL6lNtAnpXA6EmgPPT/q8bNYNVMXzj0XkaMUgRrYKwMvki/V5x/SiOYentd3I4+nET5OOHfL7tmRukm6jJT03TUYUst9PWujINiZbV5rpf2HRjeWBdW0Y448ef2k4Zk1/kOgEmEuXQPxNxEWe6oJ+1/iqLN4BQDh4nDfTDdWSNHRmOYHiMHK4H5t+BI/E+AIOo= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR03MB6501.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(136003)(366004)(376002)(39860400002)(396003)(122000001)(86362001)(38070700005)(38100700002)(76116006)(91956017)(316002)(6916009)(54906003)(66946007)(2906002)(8936002)(5660300002)(66556008)(66446008)(64756008)(8676002)(4326008)(66476007)(82960400001)(83380400001)(2616005)(6486002)(478600001)(41300700001)(53546011)(6512007)(6506007)(71200400001)(36756003)(186003)(33656002)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: +qjWKalZGsTHAFoJECpDf0wQvcP52rY7v+ugZIq2QKyVbZy+siGoOpnY/eJuN64bgH9tblRSQNdCt+LJgZd2X0PW3v5b7qbvH2Lk+SWJAphur4u1r4m6Xt9/+0YUBs779UDdRn2AsnHqXJYBUfvnFn5RfAS8FfUMxfZdKaCuNh0LTq4NCYZRV03/1NjZt8+/mb15nxooUbWpxbS4rBbw4aDuGEdJaq0yTZ7b3EEyRAt7a6SRDlweSIWbLkFJrxtq23HXGdzhAY6y7XYBkOV2a/QBIFgK2V3j5P5MQ8CJw3b4ZRWeXTJKzHpHeFl6qCTVr/9IO+CR/otRfHo85LQZtodmL4/I0Q2wwP2iACngd/xEtakJM/cVGuptuCrcfx+7oihWHyAGe+T5BxDcAfVVNQ79muBSrsqcTlkTj84SxHPfo1z5oWQH40vHn6BYHNH+G5J2Inc6SMOCntPdVyzTpY5r5hidrE0z3NeVpPJOlPg/YyHVC+FcZwyZY2UY7OHo6wB8FTMy7my1MDuEH+kI5QziFz74ws3sGPB0mUENm5mCj36v/tCkuQhuOGYEeYRqO+3ebPWtwprLUVOsAoQ7QNYPh7q3Ukps+M+CG6doRjbQPzjtHeP7oItc0iPmc8CtpkiDXgcEHOazjEor16WwWi6pdkVSg00b9H+kIL6uOUKQcxd/F3VE4yZqi49t3tH6o7hgsf88n5tfWJ7KzGf9qed15R/62c4vDHt+XVZod6t4+YVo7eLzhGOHz35V0A6iu/8bNBAeHS2KEASFotLhK+AnSw2PRjfY9gpUujz4OPNsWHS01HY247QRgH2iBYBdUNGkGAR/yYYkxXfKYw71zVCmP/3ypOtyU69xEPANu27zSqLl6EgoRlQR/CkbV+PV5Ksx7/E0lRVYs6+x5MCGpeS8lHj6NEHTmfkicUJNbKN+QryOcYzoym4uxsXQ/AIA XwYRtSe68VjSklBi2k8BKhVX5/b9IHn9673Np+unda217wCL0WmgnMvS55u7T6AXNh8oVJOJda6eUfPJLEK1VdMdvL6GeyEmlkXIqYMHfc3WN/8wyxib5HWy1qo7XKYffliyTaSF4J8qG17oxIUV2AsOHostYFp6I7caBY8kaR01zejt3+CFbtxCgia7cslvpm56hx1opH02ozdRJ7QgweuZp5cX4vwCRsI4iolrnOK/5pyxyKCb2xXgaqzcKuflqtLeBi+UZdFwCLelSSW4CTxKnZ7sYPqzeZwDMJBsea1Ufc11uprJmVD+WcqCWNRimLwFpffDna1LtBSUVq0UxIX05OLeBkZZgyPMBSJn4UEz5UbqjCkx67EGhquZczvZ+x52o2MTb4FJVYL6mKvaYEZFvjCOKpSS2XWoG5mGNq8Xy13q/6BeKiNXhUsjWtvw42I01QDHjtPwpbMJUMhly31jA9Quk25Z0k3TEkazsmb785NZ9zyDqUfrPc+ooaRErH/L9Eiwb170HN1boZlmN2YKwQanSLdLqE02H8FXA8nMP8sjrhNobbIOmGGEEHPtAbYcwMk5CKGI/L82GIL52OO5nrhTYKEBCmbXBiCwJPU2R13oefKlk+rfVOuNQZ+yDSnI/WTg4EMpoe/Kc26iJls3UyqSB50+ITzUcNd1QIwppUsnnEX5QWI7oBkEsW+Cy3FAOs5smAhM8Cuf3yI/gQ== Content-Type: multipart/alternative; boundary="_000_F0AA0C3BE4024951BCA5A9A120933404disneycom_" MIME-Version: 1.0 X-OriginatorOrg: disney.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR03MB6501.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9240c8ff-4f3c-4bf3-cc4a-08da885dea06 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2022 18:56:56.5527 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 56b731a8-a2ac-4c32-bf6b-616810e913c6 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LQ5lUIXo6T5kRyiJFZ2IdqEKhc+sm4jq1VDxhNl9OuEGCBFhTUWPoU9Dmj1yKNb+vX3J7EZk6HQxFBda1LSQUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR03MB6346 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661626772; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=TEgUo7Kp6cLyzA8obzVhH0DBDPhJLDUExP04wX4ejTE=; b=CPiJJCN8zVtnhBvV5Klql/Ym/TxbQKyxC7sqB1J5Pm/x/kFBsTnz6K04CRvl6w/WoJvaiC 2wjjVlmA4aIpywr0cq07jGZ/It0Ed7QV8dIu37IU00sJgbsj9d44O0yglD2RSEuEmvM09W sCnA0mNTBAhZd1Td2Gfuxr0sKFQvXUjuC5JrkApnsbFJzLWX1N61P702cHHP1LskAOQHsV 0NLTQw1wekqFyy+i60CMlvViJwZk1vjdHqBx2BRQEL5TOnRwNm3XSbsWlBHAnZn0WYJ/K0 G57SR6Iv2Nsa34HLUPsmcqWOwdqS2929vRq0omtOB8V0U31/4NECrFJ/L8Xx5A== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1661626772; a=rsa-sha256; cv=fail; b=Rr/eU6FZl6E8KkXX2si0CaXGtYnBD0f7FXcbzJjyftNmxZ2hXNM+hrIScUnxlzojfxb65N fQpmVEyv0Sb9IxmgebYGkrpsZd+o021ZpEwG35rIekvBvpjj9NJI1Vp+Pn+ID1IOjMCdCi KUf+ycm8wqCQUp9pKl3gbd9sdBRlUqAUvWOuGUgH9q0iZ0tKJUDz3aQFa9vdZeo9vl6AZi +hhQlSaZdn/PSHZ+hB4qtV5Hvz0WXFrNZabh+XaHfW/YqMYu3tBRVG+HbP7RjDxzFrL+7I 0SsYBfVw3Wv1afwHSOemVAAHVEAkGuEVmgw4N80kKebWBRWZor7dkLqqcstSyQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=twdc.onmicrosoft.com header.s=selector2-twdc-onmicrosoft-com header.b=KL44dI1L; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=disney.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.60 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=twdc.onmicrosoft.com header.s=selector2-twdc-onmicrosoft-com header.b=KL44dI1L; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=disney.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E34118DF0 X-Spam-Score: 7.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: YyNwztF31ppX --_000_F0AA0C3BE4024951BCA5A9A120933404disneycom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Aug 27, 2022, at 7:11 AM, Ihor Radchenko > wrote: --- lisp/ob-python.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 932aca08e..2ad907bd8 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -197,8 +197,7 @@ (defun org-babel-python-initiate-session-by-key (&optio= nal session) (setq py-buffer (org-babel-python-with-earmuffs session))) (let ((python-shell-buffer-name (org-babel-python-without-earmuffs py-buffer))) - (run-python cmd) - (sleep-for 0 10))) + (run-python cmd))) ((and (eq 'python-mode org-babel-python-mode) (fboundp 'py-shell)) ; python-mode.el (require 'python-mode) @@ -225,8 +224,9 @@ (defun org-babel-python-initiate-session-by-key (&optio= nal session) (defun org-babel-python-initiate-session (&optional session _params) "Create a session named SESSION according to PARAMS." (unless (string=3D session "none") - (org-babel-python-session-buffer - (org-babel-python-initiate-session-by-key session)))) + (let ((session (org-babel-python-session-buffer + (org-babel-python-initiate-session-by-key session))))) + (org-babel-comint-wait-for-output session))) (defvar org-babel-python-eoe-indicator "org_babel_python_eoe" "A string to indicate that evaluation has completed.") -- 2.35.1 I get the following in the Messages: org-babel-comint-wait-for-output: Buffer python-chain does not exist or has= no process Note that python-chain is the name of my session passed to the python block= s as shown in the following line within my org file. #+PROPERTY: header-args:python :session python-chain :exports results :resu= lts raw file :file-ext table Thanks, Mark --_000_F0AA0C3BE4024951BCA5A9A120933404disneycom_ Content-Type: text/html; charset="us-ascii" Content-ID: <105CE7036F7C4B4FA38AD1B0B6C6AD94@namprd03.prod.outlook.com> Content-Transfer-Encoding: quoted-printable

On Aug 27, 2022, at 7:11 AM, Ihor Radchenko <yantar92@gmail.com> wrote:
---
lisp/ob-python.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/ob-python.el b/lisp/ob-python.el
index 932aca08e..2ad907bd8 100644
--- a/lisp/ob-python.el
+++ b/lisp/ob-python.el
@@ -197,8 +197,7 @@ (defun org-babel-python-initiate-session-by-key (&opt= ional session)
  (setq py-buffer (org-babel-python-with-earmuffs session)))
(let ((python-shell-buffer-name
       (or= g-babel-python-without-earmuffs py-buffer)))
-   (run-py= thon cmd)
-   (sleep-= for 0 10)))
+   (run-py= thon cmd)))
       ((and (eq 'python-mode org-babel-python-mode)
     (fboundp 'py-shell)) ; python-mode.el
(require 'python-mode)
@@ -225,8 +224,9 @@ (defun org-babel-python-initiate-session-by-key (&opt= ional session)
(defun org-babel-python-initiate-session (&optional session _params)   "Create a session named SESSION according to PARAMS."
  (unless (string=3D session "none")
-    (org-babel-python-session-buffer
-     (org-babel-python-initiate-session-by-key session)= )))
+    (let ((session (org-babel-python-session-buffer +             &n= bsp;      (org-babel-python-initiate-session-= by-key session)))))
+    (org-babel-comint-wait-for-output session)))

(defvar org-babel-python-eoe-indicator "org_babel_python_eoe"
  "A string to indicate that evaluation has completed.")
-- 
2.35.1

I get the following in the Messages:
org-babel-comint-wait-for-output: Buffer python-chain does = not exist or has no process

Note that python-chain is the name of my session passed to = the python blocks as shown in the following line within my org file.

#+PROPERTY: header-args:python :session python-chain :expor= ts results :results raw file :file-ext table

Thanks,

Mark

--_000_F0AA0C3BE4024951BCA5A9A120933404disneycom_--