From: Joost Kremers <joostkremers@fastmail.fm>
To: Maxim Nikulin <manikulin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: ob-python: import local package into a session
Date: Tue, 24 Nov 2020 14:35:41 +0100 [thread overview]
Message-ID: <87zh36dgia.fsf@fastmail.fm> (raw)
In-Reply-To: <rpiu06$kt1$1@ciao.gmane.io>
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
next prev parent reply other threads:[~2020-11-24 13:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-23 15:46 ob-python: import local package into a session Joost Kremers
2020-11-23 16:03 ` John Kitchin
2020-11-23 16:20 ` Jack Kamm
2020-11-23 16:21 ` Jack Kamm
2020-11-23 22:47 ` Joost Kremers
2020-11-24 12:23 ` Maxim Nikulin
2020-11-24 13:35 ` Joost Kremers [this message]
2020-11-24 14:24 ` Jack Kamm
2020-11-24 18:40 ` Tom Gillespie
2020-11-25 12:58 ` Joost Kremers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zh36dgia.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=emacs-orgmode@gnu.org \
--cc=manikulin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).