I'm trying to use org-mode as an alternative to Jupyter. I'm able to evaluate code blocks with system environment by doing C-c C-c on blocks, but I don't know how to evaluate it through pipenv environment. I installed and configured pipenv.el but the documentation doesn't say how to evaluate code blocks with it.
-
Thank's @NickD.crocefisso– crocefisso2021-11-03 11:25:32 +00:00Commented Nov 3, 2021 at 11:25
Add a comment
|
1 Answer
Here's how I configured pipenv package after installing it:
(use-package pipenv
:hook (python-mode . pipenv-mode)
:commands (pipenv-mode
pipenv-activate
pipenv-run))
When you open a buffer with python code, if you want the code to be ran by pipenv you have to activate pipenv first by doing M-x pipenv-activate once.