0

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?

COTHE
  • 55
  • 1
  • 4

1 Answers1

1

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"
        ],
    
JialeDu
  • 6,021
  • 2
  • 5
  • 24