Jedi powers IDE-style autocompletion, go-to-definition, and documentation for Python. It also supports refactoring, reference search, and syntax analysis via a script API.
Overview
Jedi is a static analysis library for Python commonly embedded in editors and language servers. Its emphasis is autocompletion and navigation: infer types, list completions, jump to definitions, show docstrings, and list call signatures from partial source text. The project is no longer maintained; development has moved to Zuban, a Mypy-compatible Python language server built in Rust.
Beyond completion, the API exposes reference finding, inline and rename refactors, extract function or variable, module and project search, and syntax error listing. IPython uses Jedi natively; the CPython REPL can enable tab completion with additional setup.
Editor integrations include Vim, Emacs, Sublime Text, Kate, Atom, GNOME Builder, Gedit, Eric IDE, and others, plus several language servers built on Jedi. Virtualenvs are supported, and the tool is tested across contemporary Python versions while understanding older syntax.
Consumers interact through jedi.Script and jedi.Project objects rather than running a standalone application, making it a building block for Python tooling.
Key features
- Context-aware autocompletion
- Go-to-definition and inference
- Inline docstring help
- Rename and extract refactors
- Reference and symbol search
- Syntax error reporting
- REPL completion support
- Simple Script and Project API
Use cases
- Editor Python language support
- Custom static analysis tools
- IPython completion backends
- Language server implementations
- Exploring unfamiliar Python modules