56 questions
0
votes
0
answers
62
views
Jedi unable to resolve the root directory of the vscode workspace as a python module
Problem environment:
vscode 1.103.2 version (win10)
ubuntu 20.04 (by wsl2)
jedi 0.19.2
python extension 2025.2.0
my venv python 3.11.2
Directory structure:
A/
├──__init__.py
├── a.py
├── a1.py
└── B/
...
1
vote
0
answers
107
views
IPython / ipdb auto-complete not working for arguments to p and pp commands
I'm using python 3.12.1, IPython 8.28.0, ipdb 0.13.13 and jedi 0.19.1 on ubuntu, started like this:
ipython --no-banner --pdb my_source_code.py
I have PYTHONBREAKPOINT set to ipdb.set_trace and when ...
0
votes
1
answer
117
views
Ensuring VSCode Python Autocompletion
How can I ensure that when I instantiate a data structure in VSCode+Jupyter+Python, the attributes of the data structure are available for autocompletion throughout the notebook.
# %% Jupyter Cell #1
...
2
votes
0
answers
574
views
pylsp can't find installed editable packages
The problem is fairly straightforward: pylsp can't deal with editable packages. To create an environment that reproduces my problem:
$ mkdir /tmp/pyslp_test
$ cd /tmp/pylsp_test
$ echo "import ...
1
vote
1
answer
1k
views
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 ...
1
vote
0
answers
83
views
How to recover the call chain of the functions calling the initially searched function?
I trying to come up with a script that could generate a sort of a list of the possible call chains on a project that could reach a certain function.
Let's say we have the following modules
models/user....
0
votes
0
answers
63
views
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 ~/.pyenv/versions/3.9....
1
vote
1
answer
184
views
What library or framework can be used to parse Python file and extract base classes as well as methods inside them
class A:
def m1():
// in a.m1
pass
class B(A):
def m2():
// in b.m2
Parsing above code shall give me following info -
class names - B, base -> A, method names -> ...
20
votes
1
answer
16k
views
VS Code Python doesn't recognize match statement
When I use a match-case statement in Python in VS Code, it gives red squiggly lines and errors in the "problems" tab:
1
vote
2
answers
1k
views
Vscode shows function docstrings twice when using jedi + pyright
I am using VSCodium (an open source version of vscode) with jedi and pyright installed. This leads to function docstrings getting displayed twice (see attached picture), as jedi and pyright both show ...
15
votes
3
answers
4k
views
Runaway Jedi Language task in VSCode
Every time I close VSCode (after running some Python script) I have a Python task that lingers in my terminal running 90-100% CPU on my M1 MacBook Air, and I have to manually kill it every time. I ran ...
3
votes
0
answers
272
views
Finding Python base classes with static analysis and Jedi
Note: I don't consider this a duplicate of questions such as List all base classes in a hierarchy of given class?, because I don't have the ability to instantiate classes at run-time. The focus here ...
0
votes
2
answers
1k
views
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 ...
1
vote
1
answer
1k
views
Why does NeoVim, Coc, Jedi, Mypy, ... generate some_name.py.[git hash].py files?
I have a rather basic NeoVim setup with Coc for working with Python files. My Coc config looks like this:
{
"python.setLinter": ["mypy"],
"python.linting.enabled": ...
0
votes
0
answers
221
views
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)&...