question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hints, Suggestions, Autocomplete not working for numpy, matplotlib...

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:18
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
vdobrovolskiicommented, Nov 11, 2020

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

2reactions
JanHomanncommented, Nov 13, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyDev doesn't autocomplete for some modules (numpy ...
Autocomplete does work for many other modules (including Qt/qwt, serial, struct) and the programs run fine. However, every time I use np.something eclipse ......
Read more >
Autocomplete | Python in Visual Studio Code
1. Intellisense/Autocompletion not working for custom modules · Cause: The path to the python executable is incorrect. Solution: Configure the path to the...
Read more >
Settings Reference for Python - Visual Studio Code
Python settings reference. The Python Extension for Visual Studio Code is highly configurable. This page describes the key settings you can work with....
Read more >
How to enable auto-completion in Jupyter Notebook
You have auto-complete in Jupyter notebooks like you have in any other Jupyter environment. Simply hit the “Tab” key while writing code. This...
Read more >
How to Get the Best Autocomplete in Jupyter Notebooks and ...
To enable code autocomplete in Jupyter Notebook or JupyterLab, you just need to hit the Tab key while writing code. Jupyter will suggest...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found