From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id Z4CqJrkMvV/bbwAA0tVLHw (envelope-from ) for ; Tue, 24 Nov 2020 13:38:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6BcBIrkMvV8+DgAAB5/wlQ (envelope-from ) for ; Tue, 24 Nov 2020 13:38:01 +0000 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 8DDA69403EB for ; Tue, 24 Nov 2020 13:37:59 +0000 (UTC) Received: from localhost ([::1]:53028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khYW6-0003xq-Ai for larch@yhetil.org; Tue, 24 Nov 2020 08:37:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khYU1-0002nF-VT for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 08:35:50 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:47193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khYTz-00035S-Qi for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 08:35:49 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1714E52A; Tue, 24 Nov 2020 08:35:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 24 Nov 2020 08:35:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=vPSt5XKYSTVjHrOCnqdVgTfIk4 QHab5qsLN60gwEGuQ=; b=LhinuqJepqK4YVzcP3gbRKoLUV8Qqg9qxh1FawTeOD jk8m85PfUutJeXfAfwDoIlH13i0uPL7fKlr1AzNGQs/tsJgNR7SoOX7PSs7Mhphl idk3OvJvk0DNB+GYz9NU1vUdkcdzo6xHT3fQyWViO2UoYqIDcaNbABhQey0n3Z10 dvSCaT/hwrE23dE4iTBKkUxdApsCGK9uzCxlX2FIFL897meeh8ypA7of9wixu2jl GrwiGWMU8zCXT26st+lvt2w/KU1iNSsMTzBmJRsS1KEIaq9WykSSZdHTXqiJUglp lVBkO6Z8yTZ5hhJTY0KaKLP+CXqokxT2fS3Z3A75vUSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=vPSt5X KYSTVjHrOCnqdVgTfIk4QHab5qsLN60gwEGuQ=; b=rnqlyosmw6gf1pV5dA3Z0Z CqD3yxJAtOOjh1KCsywj1N9w4aQ7S53NmugOfA9/BuPy2dckVWAVVeU7ls07O9aR FtbJMQNqQQ8A/WASqQlAFjM2kRtBOC9dssmasLDlPpXpMyJCdpi/Pnlc1khNK3v/ X60Vy7Zm4PF+vF36Rd3YgeCOITXJ9T7m7QO+ekK3l8Ks5AAnqwH6V8HSYt9na3vJ 7lYVKvu4becum2MIXdeoqxzfCg+N+U3qC2Cl+yZOjWHQHOUIfQI+awz3+fK4m0c5 5qouQqVwEJ67wfLdpsmFfeBmjpR+YCqq3oSjjV9laanSFZ2zMlW1GLq0KSOepSsg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudegkedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeflohhoshht ucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhmqe enucggtffrrghtthgvrhhnpeeiteelhfdufeehleeuteefffethfeihefghfeihffghfeh leevveeuieeuueetfeenucffohhmrghinhepphihthhhohhnrdhorhhgnecukfhppeelhe drledtrddvvdegrddvfeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from Swift.fastmail.com (ip5f5ae0e9.dynamic.kabel-deutschland.de [95.90.224.233]) by mail.messagingengine.com (Postfix) with ESMTPA id A7AA63280059; Tue, 24 Nov 2020 08:35:44 -0500 (EST) References: <87eekkt6s9.fsf@fastmail.fm> User-agent: mu4e 1.5.6; emacs 27.1.50 From: Joost Kremers To: Maxim Nikulin Subject: Re: ob-python: import local package into a session In-reply-to: Date: Tue, 24 Nov 2020 14:35:41 +0100 Message-ID: <87zh36dgia.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.21; envelope-from=joostkremers@fastmail.fm; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.fm header.s=fm1 header.b=LhinuqJe; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=rnqlyosm; dmarc=pass (policy=none) header.from=fastmail.fm; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: eo/LNZdpaBBN On Tue, Nov 24 2020, Maxim Nikulin wrote: > 2. It seems that *recommended* and more flexible way is per-project > (per-version) virtual environments: venv in python3, similar thing were > called virtualenv in python2: > https://docs.python.org/3/tutorial/venv.html Maybe there is a convenient > way to choose and switch venv's directly from emacs. In simple cases > venv could be activated before starting emacs. Yes, I'm using virtual environments. Took me a while to get that figured out, though. Python-the-language is nice enough, but Python-the-ecosystem is quite a different thing... (Who said there should only be one way to do something?) I haven't really considered the option to install the utility functions as a package in the virtual environment, because I expect to change and develop those functions together with the rest of the project. If it were a separate package, I'd need to reinstall it every time I make changes to it, which will probably happen often. -- Joost Kremers Life has its moments