Skip to main content
2 of 2
added 16 characters in body
T. Verron
  • 4.3k
  • 2
  • 28
  • 58

I believe I found the solution.

  1. Install virtualenvwrapper

  2. Run the setup:

    (require 'virtualenvwrapper) (venv-initialize-interactive-shells) ;; if you want interactive shell support (venv-initialize-eshell) ;; if you want eshell support (setq venv-location "/path/to/your/virtualenvs/")

  3. Finally, workon the desired virtual environment. Then you can run code block and use the desired interpreter.