necaris / conda.el

Emacs helper library (and minor mode) to work with conda environments
MIT License
153 stars 49 forks source link

Add support for direct python invocation in the current environment #157

Open dov opened 5 months ago

dov commented 5 months ago

When developing small scripts in python I typically have \C-c \C-c bound to a command that does something similar to:

(setq my-python-interpreter "python3")
(shell-command (concat my-python-interpreter (buffer-name)))

However this does not take the currently conda activated environment into account. How would I change the command above so that it works within the activated conda environment?