From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mI7AMVbkrWV40wAAqHPOHw:P1 (envelope-from ) for ; Mon, 22 Jan 2024 04:43:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mI7AMVbkrWV40wAAqHPOHw (envelope-from ) for ; Mon, 22 Jan 2024 04:43:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=ua8EPZbm; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705894998; 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=r6tmGCQ+jLidoa9xqR2hd7T1BSAa7cBikMxw2dws6Q8=; b=kouU4738mhejRaInuskAP6cjloDYKWnZHS/gq1UPBDg4sO6zwIBBtHr81F9W2N1F8/VqB/ Y4SYuIJCcMuc6L+n1Xk1KE5yLTYTBKn3HM9YoW0LrOWlE+v1gSAzBR4/viECPd3oUElrKx joD8B4bai+rg8moQIym86CgP0aK02+sBrtK/v6rVzC0tSTusUFc8aezL1t5+B5F6jUocfm SprP60rKTv7bbb8N8qJL8dY9iczxTcMczjRQJi0GrVsXSVUOafep0c/nki5uYk1gfu3f+2 aCR8HvUL7F0fmwPKEazFUH+U0MaOP+tcNP5j0UD2Hl20oSIkok2uLpyNB/zvmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=ua8EPZbm; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705894998; a=rsa-sha256; cv=none; b=aDwd8MVIDOlBRQhx9vhJp7B1PHFfnhwG5TN2fN7vve7J3LiMdrDvcgQZnr9/boVGePg0YG ani0gFKxCLcrrBPQtzJY9AyKYb/DhbexXV7xsT5ltx/8NlbF0SBfpz1LMdulOjR87PJLlb WQ7y69YYsmrdy5QRV7JeamAc5oCYNLDuZO0eQ4sqrrwNf4iSNdAqBbcljV/PTdpQqk65Bj 1UURAFST46zafaVFWu4K4VewWKO9g9l1jw4GurHbDU4wbcOrRcT4PQt9EwWsKnnNkqqAxx h4AtWSbtmxoAQQ2Ww5lkWgfmyuR5rO2nxNcbMSijECcjVWU1nxqTotRoOFhrqg== 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 4AAAE3A0FC for ; Mon, 22 Jan 2024 04:43:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRlCb-0001wS-Ma; Sun, 21 Jan 2024 22:42:26 -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 1rRlCY-0001wH-MV for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 22:42:22 -0500 Received: from mail-108-mta132.mxroute.com ([136.175.108.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRlCW-0004KT-PX for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 22:42:22 -0500 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta132.mxroute.com (ZoneMTA) with ESMTPSA id 18d2f4303ca0003727.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 22 Jan 2024 03:42:17 +0000 X-Zone-Loop: c99d11dfc95202dc5caaed5f65e3e2103e2a81691fb7 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tatersworld.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=r6tmGCQ+jLidoa9xqR2hd7T1BSAa7cBikMxw2dws6Q8=; b=ua8EPZbmVL6idmfaTaZrUJvG+y HFHSIJn7ozjDVf1JCttqDaHtL4j8LMYVYiOXaT9n/toC6+oPyzHpuMJfJ6zQaZH7c0nNsiBtkM/ZI B/EoNjxEqg7kgZxEPm4rktoPU4gy/q4FC1nPmNUt7mekORmM3T6jl2gAWzgPEhqLZeqfa0ImZaURE DWb5gccrROluaExpgSHCEK6CYIrb8N8Y9DYWmzLDLCHKxxOtqWnxVQSfyTmFiM7P/YbRz8hif0sTk f4KsYMClMd1Q7SWR2vOLtHYjiVMNL+67AmVtNkO/+A3NOYzy/ZiQVfPEov+lm1eNiHKHITnxgyvNe NQlQCeJA==; From: Jack Kamm To: Ihor Radchenko Cc: Matt , emacs-orgmode Subject: Re: [BUG] conda doesn't work in ob-shell sessions In-Reply-To: <87sf2q9ubd.fsf@gmail.com> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87a61j3orj.fsf@gmail.com> <1864701b4b8.e37160d6373275.4308190093579612690@excalamus.com> <87357a2r27.fsf@gmail.com> <1864c676b9f.e1bae673679825.2955884247216895930@excalamus.com> <87ttzn1mai.fsf@gmail.com> <87h6jaj1pk.fsf@localhost> <87sf2q9ubd.fsf@gmail.com> Date: Sun, 21 Jan 2024 19:42:10 -0800 Message-ID: <87o7de9gq5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: jackkamm@tatersworld.org Received-SPF: pass client-ip=136.175.108.132; envelope-from=jackkamm@tatersworld.org; helo=mail-108-mta132.mxroute.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, 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: 0.14 X-Migadu-Queue-Id: 4AAAE3A0FC X-Spam-Score: 0.14 X-Migadu-Scanner: mx11.migadu.com X-TUID: z5LNaCOlVPYm Jack Kamm writes: > IMO breaking conda is a pretty major regression, as conda is a critical > tool in many areas of scientific computing, including in my own > workflows. Although I was never a major ob-shell user, I did > occasionally find it useful albeit buggy. But I've stopped using it > altogether over the past year because of this change. Sorry, it turns out I was badly misremembering things, and overly harsh here. In particular, going back to older commits on 9.5 and 9.6, ob-shell was always horribly mangled with conda, and not very useable. So I was wrong to say the current implementation is a regression. Actually, it seems like current version of ob-shell (on both main and bugfix) works _better_ with conda than before -- as long as the shell session is started with "M-x shell", instead of with `org-babel-execute-src-block'. In particular, Ihor's commit f2949d4d1 was particularly helpful in making ob-shell play more nicely with conda. That commit was added to bugfix around Org 9.6.4. The reason conda doesn't work well when session is started via `org-babel-execute-src-block' is because of the way the prompt is set. However, when session is started by "M-x shell", ob-shell doesn't mess with the prompt so much, and conda seems to work smoothly. Using "M-x shell" to start the session seems like an acceptable workaround to me, especially considering how conda never worked well with ob-shell before.