New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jedi ignores current virtualenv? #178
Comments
Hi: jedi.el is sensitive to the variable python-shell-virtualenv-path which virtualenvwrapper.el sets globally. So you only need to set the variable Now, for your problem actually you need to update match the following variables. ;; Used by virtualenvwrapper.el
(setq venv-location (expand-file-name "~/.envs")) ;; Change with the path to your virtualenvs
;; Used python-environment.el and by extend jedi.el
(setq python-environment-directory venv-location) let me know if this helps |
Hi @marsam! Thanks for reply.
does it look legit? but still no luck with recognizing site-packages from this virtualenv :( |
Remeber that protip, you don't really need ((nil . ((python-shell-virtualenv-path . "/path/to/my/venv/")))) |
With opened emacs and activated venv, I killed via kill -9 all the
And still no luck in recognizing packages from this virtualenv. |
that should work :/
|
|
Hi, I had the same trouble as you and managed to get jedi completion to work after applying PR #223. Maybe you would also want to give it a go? |
I am also facing similar issue. I am using venv named
Sample code
init.el setup
Jedi:show-setup
Python 2.7 setupAfter creating a new virtualenv Is there way to use Python 3 with jedi ? |
@dct Solution works! |
Sent a pull request #232 |
I have merged #232. |
Hi. Something that worked for me without having to deal with
|
There has been a lot of improvement regarding virtualenv handling in jedi itself, and the current master of emacs-jedi fully supports them.
|
system information:
jedi:show-setup-info
my setup for jedi:
my scenario is next:
M-x venv-workon
RET
<smth>
RET
Running eshell (
M-x eshell
) with active venv will launch session with properVIRTUAL_ENV
variable:Should I somehow instruct jedi to change its
sys.path
after activating needed environment?The text was updated successfully, but these errors were encountered: