From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wF18FVUir2QgCQEASxT56A (envelope-from ) for ; Wed, 12 Jul 2023 23:59:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KIKBFVUir2TxGQEA9RJhRA (envelope-from ) for ; Wed, 12 Jul 2023 23:59:49 +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 E703C508E4 for ; Wed, 12 Jul 2023 23:59:48 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=CJu7wqqy; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689199188; a=rsa-sha256; cv=none; b=Q2b13jJabfKEDe+33/tQuf1GzKs3wthNQ8uPH8xFrIY76K09hdV2yv2meoGXIR1C2asvQe GUkwh7lRitSCWORi8BtHkcFksyzjgncpcF+o/PmNlhlaE6qqO+Z7UiXPHPicNPz+tcmQLG OjhH7vKl/xT5NKL3fWyFXqErK3PgiHBoJF07IU+iKtjB+BYzeI/sgsD48cY9rYBcTpKFEL Zq8ShIK3OFHW9fGY32p5Je6kJpZwYyeDlzz7gzJV67Lo/zlUmzdsXFWlmvB2j4cPIP18Wa T49JNdcW1vPGn+KOq2gZEl4Y8VSXAyZY10t1wGHTy9PEN25q5rBrVGGIenJBfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=CJu7wqqy; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689199188; 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:dkim-signature; bh=Pf+gWsz5/zSPXm/mMC7wY9UWN9MZfW1/o29nGoG49UI=; b=tknb+6KD6WOo/mrvWZ0REjbJucKFepNUEeJEXPuIN07tdB+XyCprRs0tSqEGiGrWejfon7 2lYg0mwvIRIsrHdsMquUte3GBep/LSz1ZLVE6HEWnLUBhF92qHeZJ7NX++0QY8gk8e9CWz bnsXMaIIGSuE7f9zOXmPCS722RS4SDamc16evPicgUsdQjTt4R+GH2hQuL27BIK2r8JNI7 tICOoxi/S5Oiup3JC2d5yVottekbLKbVFQUuybUgR6IDVBwFPfZYpj7EphpqsoXmssZNb5 jGPli9fmlffMzlnzS4MU5udNi6RAA8NARUNkIuxm0uVPaBGbciklkb7TTt0UIw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJhrN-0002DN-TH; Wed, 12 Jul 2023 17:58:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJhrM-0002DE-Oh for emacs-orgmode@gnu.org; Wed, 12 Jul 2023 17:58:56 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJhrK-0006sI-Ss for emacs-orgmode@gnu.org; Wed, 12 Jul 2023 17:58:56 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-668709767b1so52751b3a.2 for ; Wed, 12 Jul 2023 14:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689199133; x=1691791133; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Pf+gWsz5/zSPXm/mMC7wY9UWN9MZfW1/o29nGoG49UI=; b=CJu7wqqyk9kGtQ6yLwYT01HVE3pSJJHjQ3OeOZ5/wF4qHojnjGTXbDlKHss16yzvAc TuBwkUypzu3m/2CIq9nP0DXYM5XAWIr2yZWP7n2H46umRjFceKsz2a4X0BKZ7zJk9pis kqE4gG6GgohKv41cedxg/2oC8TlvqRhsT22IhEKrmWTsPRIfl3MtZrr40vBY8P3YVDHQ 6LLlxbr9aK3taNu3JgLSQK/oiDTbifhCI+5KHBxOkTu+6PCXCJghm84my9ZuASfKJMCP YkEnwhBviOT42D2KxuaNqHgld6Zd/3MJWDnOKFJeMbG07nhHbFj2RpX5+Q2qR8AsJ9/1 DyAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689199133; x=1691791133; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Pf+gWsz5/zSPXm/mMC7wY9UWN9MZfW1/o29nGoG49UI=; b=fV3SRqtW50ReWMd4Cy5PI9cKykRiPxaj3l6prfKyHfov70J5EM3dKgLJS2qQmyiWZa +yxR47QXe8i5bbdnrruga367LmAGc3WDcbnJEp7j1NK/UJrpLAeOqyzt8y4zYkzYDizP QiFmrjFALCvTmBGMLpQq8ZBEe169/binP9iF+gEieyvypbO6UeNzthY0SU66MBcEMlMG NP6vlUC0V1M1d70dMFaOHRj8vJuNQhedIjiHrpf1RZaDdaDEE1US0C+kZ021gPHpMvEt DgCsHT/Po2wio9adPXwbc29rxOCQfVH8P5P46cpJwC9rkJuL/yMa//nHPxWfzjgR7hAd OeIg== X-Gm-Message-State: ABy/qLa2W/0vvqlO6XN4rOT2p+bPMvG2iKiboE0eQUqnureri78M+aGb fqjZiRiwanhv1NgIO8PiMeY= X-Google-Smtp-Source: APBJJlEbcmgCRZwlQWGhysmEmKMLNhawKnaN9kcKx1MPHsq1PO0EdY1POHaG1LXQeoXH3G2F78wOXQ== X-Received: by 2002:a05:6a00:391c:b0:682:9162:720f with SMTP id fh28-20020a056a00391c00b006829162720fmr18828373pfb.6.1689199132901; Wed, 12 Jul 2023 14:58:52 -0700 (PDT) Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id c24-20020a62e818000000b0067aea93af40sm4087010pfi.2.2023.07.12.14.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 14:58:52 -0700 (PDT) From: Jack Kamm To: Liu Hui Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-python: Fix async evaluation In-Reply-To: References: <87ilaqolmf.fsf@localhost> <87ilapka0e.fsf@gmail.com> Date: Wed, 12 Jul 2023 14:58:51 -0700 Message-ID: <87a5w023ms.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=jackkamm@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -9.21 X-Spam-Score: -9.21 X-Migadu-Queue-Id: E703C508E4 X-TUID: K3/1P0X/PKt2 Liu Hui writes: > OK, I have added a test to the patch. While your test works on its own, it seems to break subsequent tests (the next test hangs). My guess is that it has something to do with the fact that most of the Python session tests share the same session, and ob-python is getting confused about which session to use on the next test. One possible fix might be to kill the Python session started by your new test, after it's finished running. (It is probably not the best design that the Python session tests all share the same session...)