From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wKmMLNHrwGVpOQAA62LTzQ:P1 (envelope-from ) for ; Mon, 05 Feb 2024 15:08:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wKmMLNHrwGVpOQAA62LTzQ (envelope-from ) for ; Mon, 05 Feb 2024 15:08:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aO1fulwn; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707142097; 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=nW92ljx8xgBZFf10+aCeWqzzfMuZe1yJ9s3OJKyOfdc=; b=qyln8W/g0ScgKv43l+0SLka2iiYoUxdVRBpzqxu+lfwoFI7VFII76yx2HGtGwA4l/yZA/5 b1doF4yq5XO0Xl/EJ0Un287Vugg/l4BrW46x1f/E9Q0Wkt7i3FLaCG2cE0zKJjLa7DTBv/ 0kDDL+Sw9Gs262Yge7uwUXDRlG8RyApe+VWyVDZycCcRXOvfWLUY+1a9jBNXjovh0kVWrM VbJQyAB6lwOWCphHFy7wxQ1opT44dulo3qnawA5JWg1RKl9aecFeVqR8KWF78ME2108bwE t5liV6/FqBe31fqHD1SRGEbDmW7HAM8h6VkVSyVBMw2lyWxsZtIpdH4eR8OpnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aO1fulwn; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707142097; a=rsa-sha256; cv=none; b=TMPyOYrqBrlWzj9ktzLe01ZSWwKSu+lxSUfTWxljNdn3LD+L1qbnuwibJQtjrkQrNGCHKO LKaPS5Z0+0eqU2eM3TlHFZf9tpzlPl8fPxso+D8lRofMI3hygWIql/EgKDyyoE0HDBWpT8 NCn7d3VOfIhkyBfAV4+Jz1ZbBN+ZFTNab3LqomY9PzoDrgziUqrR1NQEtPmlj+ELV/ZAZq dIkzwO+35t2wkp1QYU9qrsj9RX2QKMMwk94C/Tyxk2Hy3ZbzqcUGp/NToGuBLfCe9tYXcR aZ49M1ZQzXis57/oyUn1pCNYXXnjSRHaymPHeESbo1fHbQxYlaRPKWwkXRt3Rg== 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 9F1B21A446 for ; Mon, 5 Feb 2024 15:08:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWzcs-0005ya-JH; Mon, 05 Feb 2024 09:07:11 -0500 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 1rWzcq-0005yQ-Rx for emacs-orgmode@gnu.org; Mon, 05 Feb 2024 09:07:09 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWzco-0001Fv-JQ for emacs-orgmode@gnu.org; Mon, 05 Feb 2024 09:07:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BAEC8240029 for ; Mon, 5 Feb 2024 15:07:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707142023; bh=QfHW+MG2uFPT6UJel1d+oQFumPs3BJnmoTd0U25ezBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=aO1fulwnNRELGPss/SBTofxrnFkzjUZ7jNLLQfo7OS188S10W8nJDyLKrhmln/JbN vB0TAQ22S/8cD+VcD4AEHxY5RK9iXsAj2bDoMkRNNGUoMPeerlRr4BAKWWgTV8N5mK rsGWPt1VXJfRa6ue2gG/QoOS3/VLGddrTDOdqZP/GdXxKtewui6hmzUNMrEP0yoMZB x3v0oxxVuKcYYcaDqWJ+5vawbgoSmhowW+iQC0w2F1KjlBSK4D+575OEgfQbijd5mb xn1yunExY1m9JwQJFtJqYkxRIEfZrSxV3DVuoJouodqxfPBcd3v8cwk+d6Ng20oQtD lbpuVJZGfgA2A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TT7VG5YVDz6txX; Mon, 5 Feb 2024 15:07:02 +0100 (CET) From: Ihor Radchenko To: Jack Kamm Cc: Nasser Alkmim , emacs-orgmode@gnu.org Subject: Re: Async Python src block behavior with :dir header property In-Reply-To: <877cjj915y.fsf@gmail.com> References: <87il3a55bg.fsf@gmail.com> <8734udvjai.fsf@localhost> <86plxhely9.fsf@gmail.com> <8734udoejo.fsf@localhost> <86y1c5cztv.fsf@gmail.com> <875xz9o4nj.fsf@localhost> <87plxg95u4.fsf@gmail.com> <87msskmm47.fsf@localhost> <87mssi8ht2.fsf@gmail.com> <87plxdmtq3.fsf@localhost> <87bk8x81g3.fsf@gmail.com> <87y1c019a7.fsf@localhost> <877cjj915y.fsf@gmail.com> Date: Mon, 05 Feb 2024 14:10:32 +0000 Message-ID: <87r0hr9f3b.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -8.45 X-Spam-Score: -8.45 X-Migadu-Queue-Id: 9F1B21A446 X-Migadu-Scanner: mx12.migadu.com X-TUID: CWpLwgp2geuU Jack Kamm writes: > It's because ob-python starts the session in buffer "*pysession*" (it > adds earmuffs around the session name when missing). So the following > doesn't find the inferior Python: Good point. Some backends indeed do not have comint buffer named the same as :session name. What we can do is to introduce a new backend template function org-babel-session-buffer: that will be passed a session name and src block params and return the session buffer name. If such function is not defined, we fall back to assumption that session buffer is named the same as the session. WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at