Contents
How does elpy provide completion and documentation in Python?
Normally elpy provides completion and documentation using static code analysis (from jedi). With this option, elpy will add the completion candidates and the docstrings from the associated python shell; This activates fallback completion candidates for cases when the static code analysis fails.
What happens when prefix argument is removed in elpy?
With a prefix argument, the value for the variable is removed. This only takes effect in new buffers. When you type Python code, Elpy will try and figure out possible completions and provide them in a suggestion window. If Elpy doesn’t do so automatically, you can force it to complete right where you are.
How does elpy check the root of a project?
In addition to these two commands, elpy-check also supports optionally checking all files in the current project. Elpy’s idea of the project root and which files belong to a project and which don’t can be influenced as well. Set the current project root directory.
Where does the Python interpreter start in elpy?
By default, Elpy tries to find the root directory of the current project (git, svn or hg repository, python package or projectile project) and starts the python interpreter here. This behaviour can be suppressed with the option elpy-shell-starting-directory. Govern the directory in which Python shells will be started.
How does elpy work with Emacs and Python?
Elpy provides additional functionality to seamlessly work with interactive Python in a style similar to ESS. Elpy uses the Python interpreter setup from the Emacs python package. This section briefly summarizes some common setups; add the one you need to your .emacs file.
How can I configure elpy for one project?
To configure Elpy specifically for a single project, you can use Emacs’ Directory Variables. Elpy provides a simple interface to this. Set or change the value of a project-wide variable. With a prefix argument, the value for the variable is removed.