import numpy could not be resolved message error; ipynb in vscode

52 Views Asked by At

I opened two ipynb files in vscode, and one is showing error messages.

enter image description here

this is first file and

enter image description here

this is second file.

i can run both files without any problems. But those error alrams are really annoying. How can i get rid of it? those messages are from extension named error lens. Is there any problem with it?

1

There are 1 best solutions below

0
JialeDu On BEST ANSWER

Try the next three methods

  • Ctrl+K+T switch theme

  • Add the following settings

        "editor.semanticHighlighting.enabled": true,
        "python.languageServer": "Pylance",
    
  • Add the package path with the following settings

        "python.analysis.extraPaths": [
            "input/lib/path/here"
        ],
        "python.autoComplete.extraPaths": [
            "input/lib/path/here"
        ],