Questions tagged [vscode-python]

Questions about working with Python in Visual Studio Code using the Microsoft Python extension.

This VS extension makes VS Code a python IDE. Supports any operating system with most of Python interpreters. It provides IntelliSense, linting, debugging, and unit testing, environment switch using virtual and conda environments, etc.

127 questions
-1
votes
1 answer

Python is not recognized in the VSC integrated terminal

Environment data VS Code version: 1.47.3 Extension version (available under the Extensions sidebar): XXX OS and version: Windows Server 2019 Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.8 and Python 3.8.4 (downloaded…
dito
  • 129
  • 1
  • 6
-1
votes
1 answer

Unable to run python code in VScode editor

enter image description here. I found difficulty in running some python code in VScode editor. I have installed it in windows. There are lots of error such as unused import and pylint(unused-wildcard-import) are shown. Can anyone help me to solve…
Raju Raj
  • 1
  • 1
-1
votes
1 answer

When I use "def" function in my vscode(python) It's returning "syntax error"

I was trying to run the def command in my "vscode" but it keeps reporting a strange error that I don't understand and needs some help with. I am showing here a simple example of what is happening. def hello_function(): …
clobet
  • 11
  • 5
-2
votes
1 answer

Python for VS Code installation problem: "This extension is deprecated as it is no longer being maintained."

This extension is deprecated as it is no longer being maintained Why is this message showing? Is it a problem? If so, how can fix it?
Abu Taher
  • 1
  • 1
-2
votes
1 answer

VS Code, inspect code interactively after running (-i flag)

Python has the flag -i, that allows interacting with the script after executing it in the terminal, e.g. python script.py -i. Usually how I do this is in VC Code Run the script with "the play button" Add "-i" to the terminal command and run…
Tzane
  • 2,752
  • 1
  • 10
  • 21
-2
votes
1 answer

I need to create an array whit data of three arrays

i have three arrays. a=[5, 4, 5] b=[4, 6, 9] c=[10, 5, 8] I need to identify each matrix with a color a=1=yellow b=2=blue c=3= green and finally I need to create a fourth matrix that has the highest values ​​of each of the previous matrices New…
1 2 3
8
9