Vscode-python: Hints, Suggestions, Autocomplete not working for numpy, matplotlib...

Created on 10 Nov 2020  Â·  3Comments  Â·  Source: microsoft/vscode-python

test

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](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-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]

  1. Press CTRL+SPACE
area-intellisense investigating type-bug

Most helpful comment

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

All 3 comments

Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority.

If you think your issue is more of a question or configuration problem rather than a bug, please ask on Stack Overflow with the visual-studio-code and python labels for help.

Thanks for your understanding and patience!

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'.

image

image

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.

Was this page helpful?
0 / 5 - 0 ratings