Try this,works for me !
"python.jediEnabled": true,
"python.languageServer": "Jedi",
Answer from Roger Carrasco on Stack Overflowvisual studio code - VSCode Python Extension "Downloading Microsoft Python Language Server" hangs - Stack Overflow
visual studio code - How to use python language server for vscode in specific path? - Stack Overflow
Open Source alternative(s) to Kite to (intelligently) Autocomplete Python Code?
The option of the future is a python language server (look up the language server protocol), although finding a client and server which, in combination, do what you want in a nice way, could be tricky. The most generic historically-favoured option is jedi. Beyond that, you're on editor-specific options. PyCharm community edition is open source, iirc, and the autocomplete is spectacular - it infers types and stuff like that. VScode integrates with language servers and jedi.
More on reddit.comlsp for python, sure. but which lsp server??
Videos
Microsoft Python Language Server (mspyls) is faster than pyls.
The PR https://github.com/emacs-lsp/lsp-python-ms/pull/37 has been merged. Now
Microsoft Python Language Server is supported out of box. The latest server will be downloaded according to the platform (macOS, Windows, Linux, only x64) from the Microsoft website, if the server does not exist.
You can try if you are interested in it.
(use-package lsp-python-ms
:ensure t
:demand
:hook (python-mode . lsp)) ; or lsp-deferred
» pip install python-language-server
Try this,works for me !
"python.jediEnabled": true,
"python.languageServer": "Jedi",
You can switch to Jedi via the settings:
"python.jediEnabled": true,
"python.languageServer": "Jedi",
If that doesn't work then please file a bug at https://github.com/microsoft/vscode-python.