I believe I found the solution.
- Install virtualenvwrapper
Install virtualenvwrapper
- Run the setup:
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/")
Finally,
workonthe desired virtual environment. Then you can run code block and use the desired interpreter.
(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/") - Finally,
workonthe desired virtual environment. Then you can run code block and use the desired interpreter.