From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2EvILBvCj2VoSAEAkFu2QA (envelope-from ) for ; Sat, 30 Dec 2023 08:09:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yBFaJhvCj2UAIAEAqHPOHw (envelope-from ) for ; Sat, 30 Dec 2023 08:09:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="WoB0n/YC"; 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=1703920155; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9IJl0vioD/Hhz22N7Gr9Zmbd6p8RSfIeaU5hMeK7zDc=; b=aQe63Uu0NvGEAczehsDDBVg9/Pih0bD9GyxM2oYQwi+S6Dm09j3AsC2vspa9lJJKVzidop 5d2YynEOyRq9VWFVOkdM52mMEQDSNqSunz0ad5FbhlbcNJG1SER42yrp+pOkruXYc/MW7D jmY1TtuCCw0HM2pqThGDfZHJjdj8A/Vo0jaATd7/mdG19QhaoyoMF4+eLwmS4KZyNzf4JZ bAbcnTEMzf5YOauPOr8L0Bzw4yeSNfNnYBQ+/HKSo3gZ05WCuFVPRqRULs1TS86uCtT/EM Qilu3mBFbAjkIIco4g3IhHQKekeHttA6UZAmfJLLP80CDyeiCv4OvpETqHPAsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="WoB0n/YC"; 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=1703920155; a=rsa-sha256; cv=none; b=Y/41zVZjbbPTr7C705+yU2xd440lEm/sFjuSS9dx07iQMUIK6S05bFp6Q8ZldC3OLBCO6I Ah6Zz9m/9FSkU3ImeubrWD8mLS+0L7CFpyxzx5Y+G5xOmItqZWsYUfUmh8R7+gM684pz6M 98p4lhQpBOURjVQiZo2qHMuFGu/2qtWD0Kxv+6X1HeT/pbTxmf1b9tBD/pVuidutj9ttXF UMEXBRtugDYZlIjC8Ea2tnMAbn2ilhxHJl38JFhO2V8m4LKwPWOauxMxdCnydzYzwJVdL5 yQlzcmvpMsxW5EUGkLw69NTtxMOxzQ1mrg1rgkgIwyG0x6J2C5BWVgs/wSpx0g== 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 3CA7A5F445 for ; Sat, 30 Dec 2023 08:09:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJTSI-00031a-H7; Sat, 30 Dec 2023 02:08: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 1rJTSG-00030v-I1 for emacs-orgmode@gnu.org; Sat, 30 Dec 2023 02:08:20 -0500 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJTSE-0007RI-Td for emacs-orgmode@gnu.org; Sat, 30 Dec 2023 02:08:20 -0500 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-204ec50010eso1292799fac.3 for ; Fri, 29 Dec 2023 23:08:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703920097; x=1704524897; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9IJl0vioD/Hhz22N7Gr9Zmbd6p8RSfIeaU5hMeK7zDc=; b=WoB0n/YCPSoORytGOaQfOvFavCzCsnpJijBZ3FgoZX2F4rtaVLtMHbyVv666a9inqN 097apqaFSkCipK9e4Jz6ICI0vfLKS6abVps1PXXXTidsTJfGejS8zP9PXG933zX9pE8i eYu1BLhyv9SJgwGyYQRJswDE+Vb4YcXgy1bKKA97nkSGsAFSfOjCt9s/kQQYAvLcNdjj bVwJOFuzMTByI8zWJdM/gXslZ8V7kqhCo/Q/oMHl4v/7rr9WqhdyowymedHsieuvQq+V k69n3xzF6j+Jlmdf3zwx2Hm+bzgQ3JECRazJ6YxTCcb4PomETzpXpjErkpV6rRHwdBg3 XELg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703920097; x=1704524897; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9IJl0vioD/Hhz22N7Gr9Zmbd6p8RSfIeaU5hMeK7zDc=; b=FhEhP84qFsH5htHI0F8UIsXw9+JaGu67JsSOn+6fXtV0z2BOK6+1Gmwg3BcmeQCWSq KktJdVmO/AWY33U66YwjYy1pn79yqnhRtWICbwHkU7lyVYFDw/Jytdm0ir66vtbW743g Kwh16NSaHZbLzexmMB2BGYachRfk5b9oVh8CmtOw8HIh1MJH74UMPM2SICbY9hfw6m9r NgkFmjAwqWvRSUiCc3KOPyOyzDqf69dmiUfTNEYREyKbWkEV+QfZSq3rXxci8/VPaQvc AbQjeE4NKWweFaDe1mEGksywidkjN4AgMOyvrOsphzjVR20vQx1MopTqNNo2oI18d/ry 5HiQ== X-Gm-Message-State: AOJu0YyrfyNzVrx7YqMblixWh7uZoLljX69lsDcol5jKCSN84J/cvABz qK+H4Mf3SkmObcVwgyPpk+tsx5vtZFT6P55GQto= X-Google-Smtp-Source: AGHT+IFW9Lz6AjyjRNUbIKl5I6MdyViaIPNjBj04iZKG2EUEMEKnF3eVTo9GLo0AZ9eUMSrwavWeISQnPbJGF0wcMIk= X-Received: by 2002:a05:6870:c10f:b0:203:4840:a945 with SMTP id f15-20020a056870c10f00b002034840a945mr11779962oad.47.1703920096935; Fri, 29 Dec 2023 23:08:16 -0800 (PST) MIME-Version: 1.0 References: <87zfyosw8n.fsf@localhost> <87ttovlb1u.fsf@localhost> <878r6647vv.fsf@localhost> <87bkb2rqer.fsf@localhost> <87bka81wi4.fsf@gmail.com> In-Reply-To: <87bka81wi4.fsf@gmail.com> From: Liu Hui Date: Sat, 30 Dec 2023 15:08:05 +0800 Message-ID: Subject: Re: [PATCH] Set Python shell in Org edit buffer To: Jack Kamm Cc: Ihor Radchenko , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:4860:4864:20::31; envelope-from=liuhui1610@gmail.com; helo=mail-oa1-x31.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.57 X-Spam-Score: -9.57 X-Migadu-Queue-Id: 3CA7A5F445 X-Migadu-Scanner: mx10.migadu.com X-TUID: 13SaVY1c3Yac Jack Kamm =E4=BA=8E2023=E5=B9=B412=E6=9C=8830=E6=97=A5= =E5=91=A8=E5=85=AD 06:20=E5=86=99=E9=81=93=EF=BC=9A > > Liu Hui writes: > > > But it is indeed possible that two sessions are inconsistent, if users > > intend to have different org-babel-python-command and > > python-shell-interpreter, which are used by > > `org-babel-python-initiate-session' and `run-python', respectively. > > I have just proposed this patch, which will reduce this discrepancy by > having ob-python sessions use the same interpreter as `run-python' by > default: > > https://list.orgmode.org/87edf41yeb.fsf@gmail.com/T/#u Thanks! It is a nice change IMO. > Additionally, we could set `python-shell-interpreter(-args)' in > `org-babel-edit-prep:python' to make `run-python' in Org Src buffer use > the same interpreter as :python header or customized > `org-babel-python-command'. Agree. I think it can address the concern about inconsistent sessions.