Questions tagged [python-jedi]

Jedi is an autocompletion library for Python.

From the Jedi website:

Jedi is an autocompletion tool for Python that can be used in IDEs/editors. Jedi works. Jedi is fast. It understands all of the basic Python syntax elements including many builtin functions.

Additionaly, Jedi suports two different goto functions and has support for renaming as well as Pydoc support and some other IDE features.

To use Jedi, the library must be installed. Most users also install an editor plugin.

Plugins exist for Vim, Emacs, Sublime Text, and SynWrite.

53 questions
1
vote
1 answer

How to remove the implicit "self" argument on autocompletion in jedi-vim

I just installed jedi-vim. When Jedi autocompletes a method, the first argument is always self, that is implicit in the method call. How can I get rid of self?
vrde
  • 937
  • 1
  • 11
  • 25
1
vote
1 answer

Jedi Not Working With boto3 Library

I am trying to get jedi working properly with the boto3 library for Amazon Web Services ( https://github.com/boto/boto3 ). It's probably easiest to explain with an example: $ python Python 3.4.3 (default, Jul 16 2015, 13:03:44) [GCC 5.1.1 20150618…
dennis
  • 33
  • 4
1
vote
0 answers

youcompleteme introspect names for python

I have installed youcompleteme in vim along with Jedi. I am able to get the completions to work when starting a declaration from module namespaces or names/variables in my current file. The issue is that once I "dot" a "local" name which is not a…
dave
  • 897
  • 1
  • 7
  • 20
1
vote
1 answer

Possible to convince Jedi to autocomplete lists?

I'm getting a huge amount of utility out of exposing an object to tree at the command line to a python program. For example: myprog.py obj1.obj2.method Let me execute obj1.obj2.method(), and myprog.py obj1. myprog.py obj1.obj2 lets me…
user48956
  • 14,850
  • 19
  • 93
  • 154
1
vote
1 answer

Preventing jedi to complete everything after space

I am trying to use jedi to complete python code inside a PyQt application, using QCompleter and QStringListModel to store the possible completion. Here's a simple working demo: #!/usr/bin/env python3 from PyQt5.QtCore import * from PyQt5.QtWidgets…
AkiRoss
  • 11,745
  • 6
  • 59
  • 86
1
vote
1 answer

Is it possible to get jedi autocomplete for a C++ library binded to python?

I am using vim with jedi-vim to edit some python code. However, some libraries we use are C++ shared libraries for which we generated python bindings using pybindgen. When using jedi-vim, I do not get signature for any of the classes and methods,…
Urukann
  • 475
  • 4
  • 10
0
votes
1 answer

VSCodium Numpy autocompletion not working

When I start typing a line, for example plt.subp it will show suggestions from matplotlib.pyplot, if I have imported the library above. This is the expected behaviour. The problem is that this is not happening with numpy. For example say I want to…
0
votes
0 answers

How to exclude paths for YcmCompleter GoTo command?

I am working on a sdk project using python in vim. I have a local dir that contains my development work like ~/Project/{my_project}. I also installs the sdk package for python so…
DutchBro
  • 45
  • 4
0
votes
2 answers

Jupyter Lab or Jupyter Notebook autocompletion won't work

Last night I have updated all of pip packages and suddenly Jupyter autocompletion stop working. I have tried to use different release of jedi packages but won't help. I have used nbextenstion option as well with no luck. I'm using jedi 0.18.0 Python…
Michael
  • 55
  • 1
  • 11
0
votes
0 answers

python jedi doesn't autocompleate

I'm using Arch Linux. I'm trying to install jedi autocompletion but it's not working. I installed Atom extension, vim extension, jedi itself and I ran export PYTHONSTARTUP="$(python -m jedi repl)" but when I start to type neither Atom nor vim…
enes3626
  • 47
  • 6
0
votes
0 answers

jedi infer() does not work with my custom AWS S3-based Python importer

I get a ValueError: not enough values to unpack (expected 1, got 0) exception when I'm trying to run jedi inside of AWS Lambda powered with my S3-based Python importer. I manged to make parso and jedi working with two small Python standard compliant…
0
votes
1 answer

should jedi be install in every python project environment?

I am using jedi and more specifically deoplete-jedi in neovim and I wonder if I should install it in every project as a dependency or if I can let jedi reside in the same python environment as neovim uses (and set the setting to tell deoplete-jedi…
Joff
  • 11,247
  • 16
  • 60
  • 103
0
votes
0 answers

Checking if a completion is a @property in Jedi 0.14.0

We've recently upgraded the version of Jedi we are using from 0.13.2 to 0.14.0. Previously, we could check whether an item in Script.completions was a @property by attempting to access its param attribute. If the completion was a property (or a…
Rich
  • 7,348
  • 4
  • 34
  • 54
0
votes
0 answers

How to set __doc__ correctly for the autocompletion of C++ libraries

We have a pybind11 module and want code completion with Jedi for its classes and functions. Our approach was to set the docstring __doc__ of the functions so that Jedi can use them for its completion. When we call completions() we get an empty list.…
stackomatiker
  • 324
  • 3
  • 14
0
votes
0 answers

Getting Jedi to look at additional paths for code completion

I am trying to get jedi code completion to work with Python stub files within the Spyder IDE 3.3.3 (from Anaconda). In Visual Studio Code I can add the location of the files by adding to VS Code settings.json "python.autoComplete.extraPaths":…
Aad
  • 144
  • 1
  • 5