Python IDE using Eglot?
osx - Setting up Eglot in Emacs 30 - Emacs Stack Exchange
Trying to get eglot and python to play together.
Setting up Eglot for Python
Videos
Anyone know of a modern tutorial for beginners teaching how to setup Emacs as a Python IDE, much like this one, using Eglot instead of Elpy?
Brand new to emacs - it has almost been a whole week - using Freebsd 13 (and a bit on Windows 10)
emacs 29.1 has eglot baked in, and M-x eglot asked for access to an executable provided by python (pylsp)
-
pip install "python-lsp-server[all]"into a dummy venv -
Add the venv's bin/ to $PATH
-
And
M-x eglotconnects to the language server!
eglot now finds indent errors, syntax errors, highlights all instances of variables, and gives guidance on functions like print (although is in the minibuffer and not well formatted for my eyes)
But it does not give command or variable completion which I think is supposed to come from jedi.
My question is - how to get eglot to speak to jedi?
Is completion supposed to come from
-
pylsp (in the python venv) speaking with python jedi,
-
through eglot speaking directly to jedi (in the python venv) or
-
directly between emacs buffer hook and emacs jedi (which I cant find in the package-list)
Tried with emacs 28 - but eglot wasn't in the package-list
Thoughts?