1

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.

1
  • Thank's @NickD.
    – crocefisso
    Nov 3, 2021 at 11:25

1 Answer 1

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.