From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AJoEAjUYvV9VWAAA0tVLHw (envelope-from ) for ; Tue, 24 Nov 2020 14:27: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 mp0 with LMTPS id UPSBOTQYvV8bRwAA1q6Kng (envelope-from ) for ; Tue, 24 Nov 2020 14:27:00 +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 3471394011C for ; Tue, 24 Nov 2020 14:27:00 +0000 (UTC) Received: from localhost ([::1]:46254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khZHW-0001rd-2C for larch@yhetil.org; Tue, 24 Nov 2020 09:26:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khZFM-0008Vm-ON for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 09:24:44 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:35146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khZFK-0004cV-TF for emacs-orgmode@gnu.org; Tue, 24 Nov 2020 09:24:44 -0500 Received: by mail-pl1-x635.google.com with SMTP id x15so10776448pll.2 for ; Tue, 24 Nov 2020 06:24:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=p6txZgJVdkjJqtwNGgL3aL443Qf/z3Sa50groQysgJw=; b=T/0Hby5f4ZRM2msbsU2MD4BGUlbnTDx0Z7vehMtdbd1Jam6EzACJHWEcEc9ubySxJ9 SVk0il+GRjEpbt92VNy7HjzTA5ViKzCJzhTFYY+JFUyO0fSadshLYS7mEXVOCZnV98/A XtZo4Nf0+WnvczuSyjK8m8thxZSJFjMcUzDYw2rFFktPyCGBpFXavmOAHKpP4oFMB867 x0JjUswyvxr1sIzvvR0rupVXHvxvUVh5BwvqN1WnQZD6M7Jtl4YJAvkOPX7GgVDfiIkG 3KFXs3Rn5AOgJ6U+MeqGkP8OZlE6IB5XTAgILHp9WkoKX7qXNwPEOjAjBmur/Dn/uBtc lMOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=p6txZgJVdkjJqtwNGgL3aL443Qf/z3Sa50groQysgJw=; b=pc74kY3sQKFm1ckZPoArS9++uuKivZ/r1/j1tqYF1iVHbIqt7uSAHqtSMt1eDP7m6I QRI/Uq9uQFWE4j2RyQ8I/ZLGY4Qt26Kswb0yYwsAAcW7e38WnX4VnoOLw/TnqbX/LNJJ +9kfEYFDwszVf3MwL9+/J7Bw/N6ufX4DqLSvO/NWXtaBozpVAwkmZ5fX0YX9DwXnc3Xm NhfSAvEn2o9rlU16p4C/h8V23IhZPfLnrzcgjKoUGCBjC8cZUtdHw2WfE8GrBAjO6Wmk 7sKkSdvt8s0/nKRZm9cOMSyOAjzbNaWn2QA3Kcui9V4FDWvc4HIt/j58Af4JUpmSFLed OocA== X-Gm-Message-State: AOAM531t1Qpelh2AbmKj0/fWWnCzrz5xnAi1ZbkhQ77FJyograpG90hh j64RQItEmJEwFi2VQi7eO0o= X-Google-Smtp-Source: ABdhPJyY0QLFhJ4ZM5ZeTzlAdQiLwdl5v1V4uSmDc4W+IGmR3MyLKjBQIkUgLaREI30/eKhQuY/D8g== X-Received: by 2002:a17:902:e9c4:b029:d6:d5d6:c288 with SMTP id 4-20020a170902e9c4b02900d6d5d6c288mr4084162plk.22.1606227881341; Tue, 24 Nov 2020 06:24:41 -0800 (PST) Received: from localhost (199-83-220-90.PUBLIC.monkeybrains.net. [199.83.220.90]) by smtp.gmail.com with ESMTPSA id b5sm15220247pfr.193.2020.11.24.06.24.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 06:24:40 -0800 (PST) From: Jack Kamm To: Joost Kremers , Maxim Nikulin Subject: Re: ob-python: import local package into a session In-Reply-To: <87zh36dgia.fsf@fastmail.fm> References: <87eekkt6s9.fsf@fastmail.fm> <87zh36dgia.fsf@fastmail.fm> Date: Tue, 24 Nov 2020 06:24:39 -0800 Message-ID: <87d0026deg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=jackkamm@gmail.com; helo=mail-pl1-x635.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=gmail.com header.s=20161025 header.b=T/0Hby5f; dmarc=pass (policy=none) header.from=gmail.com; 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: ZrIQdbPzXPRR Joost Kremers writes: > 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. If you install the package using either "python setup.py develop", or "pip install -e", then Python will install your code via symlinks instead of copying, so then you don't have to worry about reinstalling every time you make an edit. To switch between venv's in emacs, I use pyvenv: https://github.com/jorgenschaefer/pyvenv