From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KFiCFphgjWWuCAAAkFu2QA (envelope-from ) for ; Thu, 28 Dec 2023 12:48:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id iHDbDZhgjWVQKgAAe85BDQ (envelope-from ) for ; Thu, 28 Dec 2023 12:48:40 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Fwu63Ro9; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703764120; 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=0EGqP3em6QpXLUQrV4Y+yJjJdafnUVjMy/zxMuazqlM=; b=CQMT4AQJURh7+rvAdBtCulWwPOJNqPDiFBhgCOTj8n7SvLC7BpbaGldsGxJj9YwscnXHta +9c12CqRWciGsjFCLBWVEkEcI7p87oNKDIHCJcpM0qmfPhSa7csZlB07Jcz4GR6rRT9ggA D3YP3zT4f74tCtjHDNy6/wNGw29XDw8m4iQdOiJz+PWgREBJt4plWSFNTvEG6KTGGCE41h DQ9j1xgRI9BPHKNfGBk39fYV0APQh9gSeqyGUlsjx7R9cJgF5sQutwNPrJ0R9ce8RPcFyc A/kk9AA+x28KhByp3PX8MOE8lgl1SJ8Y5aMsh4hp92ZB1dAJN79rK6gyuGM7JA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Fwu63Ro9; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703764120; a=rsa-sha256; cv=none; b=TdtjHbFziQsidnZDcBcPHYTGlDAKXKTfZjT97aJHdpeFNPHflZmEbJt+CnoMq7MyybsAo5 nL69HGFUvpRW3LkjUI6sun47ciFM+wQJ3Xk4pq4MohAytzjHiuRRDH/aDoJOekswSeyEiG M/OC1yVpkyIEH4HzRK7SIvK+6MSpIYdzkBb1N/sAi4ImVrfggkFdzL72hkjjwWPeuxiOt/ tAMHn328h8HzuyoH8Z3ywYaU+qEv8O+EOpuipLgoDz/Pzp0/l9dqpCTanGkmMilnwrtJ66 osLPHt+uxcsM4k0eIpbJzL+M5M8rT/rgBuLO4tZoGE37me2FBhA/1vO6GnUecw== 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 0266D6277B for ; Thu, 28 Dec 2023 12:48:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIosA-00046c-1l; Thu, 28 Dec 2023 06:48:22 -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 1rIos7-00046F-Si for emacs-orgmode@gnu.org; Thu, 28 Dec 2023 06:48:19 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIos6-00020H-3z for emacs-orgmode@gnu.org; Thu, 28 Dec 2023 06:48:19 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CF5A4240105 for ; Thu, 28 Dec 2023 12:48:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1703764096; bh=TVfjflz6tuAX83ds9g4vCWlH/vMc5fBGJqRHDMNyYvM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Fwu63Ro9DblD97PjQLaPo0bE5q9y2xOD4nMVPTKcT6RtgEYMuVGuk7n1qT0XRpS3+ RzIqAfr3RCVk2DVtPGYJUmeFhcy0tNTuOLgZU0wRvtnDo2XEn1PCVHLOqjDvlOpCfT YPAqCho0FMEyDRsRJKnwKdiIucmGy7bBP8/gzC4SFJgUVmPA4w+VrZRKPC0licnQ+E NMxRCxZBvER1klZj/7+CHL1k7LTCszFkRtX1qU5V3XSblA4peXr09CrmontRQBfcGV cZTQLkptb01fQPjoqQ/8JEqpgsfGIe08Gsruy9gF7ym5dZ+pj/1tc8w5qyQu/vpY0y TQ+uTF19bVzjg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T16G82T5vz9rxQ; Thu, 28 Dec 2023 12:48:16 +0100 (CET) From: Ihor Radchenko To: Jack Kamm Cc: Liu Hui , emacs-orgmode@gnu.org Subject: Re: [PATCH] Set Python shell in Org edit buffer In-Reply-To: <87jzp018lv.fsf@gmail.com> References: <87zfyosw8n.fsf@localhost> <87ttovlb1u.fsf@localhost> <878r6647vv.fsf@localhost> <87bkb2rqer.fsf@localhost> <87edfwsuvx.fsf@localhost> <87sf4bsm1w.fsf@localhost> <87jzp018lv.fsf@gmail.com> Date: Thu, 28 Dec 2023 11:51:28 +0000 Message-ID: <878r5ek0jj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H5=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.28 X-Spam-Score: -9.28 X-Migadu-Queue-Id: 0266D6277B X-Migadu-Scanner: mx10.migadu.com X-TUID: BMDIcE737F+6 Jack Kamm writes: > Ihor Radchenko writes: > >> I think we have a misunderstanding here. >> >> Didn't we just discuss that C-c C-p in python is not equivalent to >> `org-babel-python-initiate-session'? > > ob-python works fine with sessions started externally by `run-python'. > And I have preserved this functionality, as I enjoy the flexibility of > working this way. > > In particular, ob-python will detect when it needs to run > `org-babel-python--setup-session', even if the session was started > externally by `run-python'. As long as it remains undocumented, we can break this in future (maybe years from now, but still...). What might be more robust is to provide an explicit "start session from Org Src buffer" command for ob-python and re-bind `run-python' to this command in Org Src buffers. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at