python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

matplotlib.cm.rainbow cannot be resolved

Open xuke444 opened this issue 5 years ago • 1 comments

Environment data

  • Language Server version: vscode python extension v2020.6.89148
  • OS and version: windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.7

Expected behaviour

create an conda env with python 3.7 pip install matplotlib==3.2.2

then create py file will flowing code.

import matplotlib.cm as cm cm.rainbow(xxxx)

it says Module 'matplotlib.cm' has no 'rainbow' member

Actual behaviour

XXX

Logs

XXX

Code Snippet / Additional lnformation

XXX

xuke444 avatar Jun 25 '20 04:06 xuke444

to clarify auto complete, and go to definition also not working. but run time passes.

xuke444 avatar Jun 25 '20 04:06 xuke444