vscode-python: Hints, Suggestions, Autocomplete not working for numpy, matplotlib...
Environment data
- VS Code version: 1.50.1
- Extension version (available under the Extensions sidebar): Microsoft Python v2020.10.332292344
- OS and version: Windows, Linux, macOS (all of them same problem)
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.2 64 bit
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv (with numpy installed)
- Relevant/affected Python packages and their versions: any external package (numpy, matplotlib…)
- Relevant/affected Python-related VS Code extensions and their versions: Microsoft Python v2020.10.332292344
- Value of the
python.languageServer
setting: ?
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
I installed Pylance as suggested above, still same problem
Expected behaviour
Show documentation or function parameters for numpy.array
Actual behaviour
No showing anything
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Press CTRL+SPACE
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 18
- Comments: 17 (1 by maintainers)
Hi, can confirm this also affects me — after the update autocompletion for pytorch and numpy stopped working. Same vscode / python extension versions as for the topic starter
I can also confirm the issue. Matplotlib seems to be okay. Pandas is fine too on my end. Actually, it only doesn’t seem to work with np.array. All other np functions seem to work. Also, it seems like from the symbol that np.array is not identified as function, but ‘import’.
Python extension version: v2020.11.358366026
VSCode: Version: 1.51.1 Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f Date: 2020-11-11T01:11:34.018Z
numpy 1.16.6
Python 3.7.4
Value of the python.languageServer setting: Pylance and Microsoft language server are affected.