I'm using a virtualenvwrapper
setup for Python. On my emacs, I have virtualenvwrapper
and jedi
installed from MELPA.
What I currently do is, I open Emacs, M-x venv-workon RET blabla RET, then M-x jedi:setup RET. Now I have Numpy installed in environment blabla
, but not globally. After workon
and restarting of the Jedi server, I anticipate Jedi would auto complete Numpy functions from the package automatically. Say when I type import numpy; numpy.
, after the dot, I want Jedi to jump out and give me a list of completions. But it doesn't. I tried jedi:install-server
, it installs it to the old path ~/.emacs.d/.python-environments/default
. I guess Jedi is not reading virtualenvwrapper
correctly. What's the right way to setup Jedi with virtualenvwrapper
?
(setq python-environment-directory venv-location)
. did you set that up correctly? – mutbuerger May 18 '15 at 09:35venv-workon
? – Hot.PxL May 18 '15 at 12:37venv-workon
isn't that automatic to readVIRTUAL_ENV
and switch to the appropriate one before starting Emacs. Anyways I changed to Elpy. it sets everything up for me. Thanks for your help – Hot.PxL May 19 '15 at 03:01