Getting Started with Python in Visual Studio Code

  Рет қаралды 237,438

Microsoft Visual Studio

Microsoft Visual Studio

Күн бұрын

In this episode, Robert is joined by Tyreke White, who shows us how to get started with Python development using Visual Studio Code. He covers what you need to install and how to configure your environment, as well as sharing tips on how to debug your Python code.
Resources:
Getting started: aka.ms/vst/pythonvscode
Follow our blog: aka.ms/pythonblog
Follow us on Twitter: @pythonvscode
Demo code (github.com/Anapo14/sentimentapi)

Пікірлер: 128
@roastedpeanuts1994
@roastedpeanuts1994 3 жыл бұрын
Dear Microsoft, timestamps for each of the topics would be very helpful.
@enocharthur4322
@enocharthur4322 2 жыл бұрын
Thank you
@tjmoncur0231
@tjmoncur0231 3 жыл бұрын
I like how he was obviously instructed to use Edge, but wasn't told to take his Apple Watch off before recording.
@boknows8263
@boknows8263 2 жыл бұрын
I begin to learn Python and come across VS code, spent some time and didn't figure out how to set up VM and install python packages in VS code. after wathing this video, I figured them all out. I am up and running Python in VS code. thanks a lot for this video!
@romulobrandino
@romulobrandino 4 жыл бұрын
11:00 creation of virtual environment. 14:15 how to activate the virtual environment in Windows.
@sangwonkim9298
@sangwonkim9298 4 жыл бұрын
Legend
@Ray-zins
@Ray-zins 3 жыл бұрын
Thank you appreciate it
@blucean9638
@blucean9638 3 жыл бұрын
representative of the class
@ali_alami
@ali_alami 4 жыл бұрын
no one : literally no one : the python guy : cool awesome
@nikkittb
@nikkittb 4 жыл бұрын
sentiment = "positive"
@okperson9771
@okperson9771 4 жыл бұрын
*yEAh*
@kevinh21labs
@kevinh21labs 3 жыл бұрын
make sure you tell people to select the terminal option in the debugger window. And then select the new command prompt option. Powershell is not configured to run scripts by default. (14:25)
@artemburov9456
@artemburov9456 2 жыл бұрын
Thanks for the great video! Clear and simple to start working with Python in VS Code.
@lwa.dev74
@lwa.dev74 3 жыл бұрын
Great presentation of Python 3 in action inside VS Code :-) this Guy "Tyreke White" made learning about Python really interesting... so much so I decided too install python 3 inside kali linux running vs code... really want to learn more about this language... Amazing!!!
@llihak
@llihak 4 жыл бұрын
what are the other extensions you have? particularly, the ones above and below the extensions icon. thanks, and thanks for this clear tutorial.
@georgegikwa7387
@georgegikwa7387 4 жыл бұрын
When i type if else statement in my python vscode it brings for me a bunch of code nearly 300lines
@sdwaltersumajit2138
@sdwaltersumajit2138 4 жыл бұрын
Helpful. Useful. Thank you for sharing.
@karelvanderwalt3625
@karelvanderwalt3625 4 жыл бұрын
The menubar on top and the status bar at bottom are both 'Toolbars'? And the Icons are also known as Badges?
@mesetarioalcarreno5762
@mesetarioalcarreno5762 Жыл бұрын
Virtual environment es una caracteristica increíble, me flipa lo bien lograda que está.
@_matis_
@_matis_ 4 жыл бұрын
Just to provide some feedback.I am pretty new to programming and seeing things typed in terminals and cmd confuses me a bit.I think that most noobs are more the visual learner type where they click something and stuff happens.Once you want speed and efficiency i guess people start to use commands.So if this is for experienced folks i think this might be a good tutorial.For beginners like me,it is a bit too much black screen with white letters :).I just came from jupyter notebook searching for a new enviroment to code,many people praised vs code and i see why.But the problem is that it has a bit of an "unfriendly" vibe for me (even though i like the look of the program),like there are so many things to setup,so many things to type using cmd ect....So i am not trying to bash you guys,just providing some feedback.Keep up the work.Thank you
@LittleJacob1985
@LittleJacob1985 3 жыл бұрын
If you want something which has less things to setup and is good to go out of the box then try Thonny ( thonny.org ).
@raulalejandromunozaraya3878
@raulalejandromunozaraya3878 4 жыл бұрын
I love these videos, the icons are so nice
@jaseemj313
@jaseemj313 4 жыл бұрын
I opening visual studio code in my laptop it appear complete black can anyone help me to solve the problem
@josephammar800
@josephammar800 2 жыл бұрын
Hello, when I add a venv. and then click yes for the popup notification, the vscode does not appear in my folder vstools. How can I fix it ?
@bradleesargent
@bradleesargent 4 жыл бұрын
In linux to activate an environment I used "source vstoolbox/bin/activate"
@mrmuranga
@mrmuranga 4 жыл бұрын
Very engaging...thanks
@shrikantvaishnav1077
@shrikantvaishnav1077 4 жыл бұрын
Very Informative..
@Gglsucksbigballz
@Gglsucksbigballz 4 жыл бұрын
It’s done something Magical! It’s hit a breakpoint!
@PALTUBABY
@PALTUBABY 4 жыл бұрын
very nice explanation with good demos. I learn from it and also tried hands-on. worked well. Thank you :)
@vibdib
@vibdib 4 жыл бұрын
Is there any difference between python in vs code and python with visual studio community, professional or Enterprise edition
@ggcmod
@ggcmod 4 жыл бұрын
There should be no differences, since in fact you have to install Python in addition to VSCode so it is independent of the use of VSC, this is just a tool to write Python.
@brunoillipronti8641
@brunoillipronti8641 4 жыл бұрын
Thats a nice question. Specially because people dont wanna move from PyCharm and Microsoft has potential to overcome the features with VS Pro
@kevinh21labs
@kevinh21labs 3 жыл бұрын
I may be mentally deficient, but where did the sentimentapi file (13:30) come from? How do I follow without the sample file? Why is it so hard to learn a so-called easy language? I was doing great up to that point. Darn.,
@abhimavila
@abhimavila 4 жыл бұрын
Were do i get the requirement. Txt
@Solaricusml
@Solaricusml 3 жыл бұрын
Perfect, i am already coding using Linkedin course
@Lord_Liverpool
@Lord_Liverpool Жыл бұрын
Great video, thank you!
@user-or7ji5hv8y
@user-or7ji5hv8y 4 жыл бұрын
I think a less complicated example than the flask example used would have been helpful, since the point is python and not about learning flask.
@rahimabaskiobya5048
@rahimabaskiobya5048 2 жыл бұрын
He confused me, the purpose was python on VSC, not Flask. He was required to explain extensions were needed to help python developers of different levels to understand. I quit on the way.
@theobellash6440
@theobellash6440 2 жыл бұрын
Best ever extensions, was already using these.
@Christobanistan
@Christobanistan Жыл бұрын
We need an updated version of this showing how to do the virtual env stuff without resorting to the command line. Surely the tooling has caught up!
@48nakul
@48nakul 4 жыл бұрын
this is some good stuff right here
@YigalBZ
@YigalBZ 3 жыл бұрын
A question if I may (or guide me to a forum): I am trying to learn ML object detection with VScode & Python. I have a lot of experience with VSCODE with Arduino/ESP, but first time into python. My first import is for Pandas. Pip install pandas seems to work, but when I run debug, I get "Exception has occurred: ModuleNotFoundError No module named 'pandas'" . Any idea?
@YigalBZ
@YigalBZ 3 жыл бұрын
Ignore it - solved with VScoer restart. Still asking: is there a good forum to use with such questions?
@blo0buryz__745
@blo0buryz__745 3 жыл бұрын
This was no help. I still can't get it to let me write code.
@cong0929
@cong0929 4 жыл бұрын
Cool! very clear voice to understand!!
@Dmitrievsky
@Dmitrievsky 3 жыл бұрын
Hi, I have a little problem. Python decorators doesn't work in vscode, bot work in vscode jupyter. Do you know how to fix it? Example: #Decorator are just function that take function as first #parameter and return a function def logging(f): def decorator_function(*args, **kwargs): print('executing '+f.__name__) return f(*args, **kwargs) return decorator_function #Use it like this @logging def hello_world(): print('Hello World') hello_world() returns an error: >>> def logging(f): ... def decorator_function(*args, **kwargs): ... print('executing '+f.__name__) ... return f(*args, **kwargs) ... return decorator_function ... #Use it like this ... @logging File "", line 7 @logging ^ SyntaxError: invalid syntax
@ospfmon
@ospfmon 4 жыл бұрын
Cool. Nice to start with
@hawlkman
@hawlkman Жыл бұрын
For some reason the .vscode file never appears for me :(
@brock2k1
@brock2k1 4 жыл бұрын
"Getting Started" should show stuff common to new users, not some very narrow project that 99% of people aren't interested in.
@N0__Name__
@N0__Name__ 3 жыл бұрын
i wanted to learn to write python using vscode... u took all my interest in even trying...
@akin242002
@akin242002 3 жыл бұрын
Don't give up. Start with the basics and then gradually progress. This guy in the video went straight to intermediate level concepts.
@praveenkumargr4772
@praveenkumargr4772 4 жыл бұрын
really nice explanation.. now i know how to use VS code for python development and inbuilt features of VS code.
@wsfaso
@wsfaso 3 жыл бұрын
great video, would like to see one use VS Enterprise to do the same thing,
@TwstedTV
@TwstedTV 4 жыл бұрын
Can you guys do a large series for C++ in Visual Studio 2019 (community edition) ?? I also really wish you guys took over C++ extension for 'both' visual studio 2019 and code, like microsoft did for python extension. currently its a huge pain in the ass to get going with C++ extension in visual studio code, it would be nice if microsoft took over that extension and made it a lot easier on people to install and get going on both IDE's of visual studio 2019 and Code. Having to read huge text document and going through so many configurations and installations, just to be able to use C++ extension is a bit much and extremely exhausting. Having to spend several hours trying to get the extension to work properly without errors or mishaps, it would just be really nice if microsoft took it over and fixed all these problems that we should not be going through in the end of 2019 going on 2020. It shouldn't be this hard or this much of a pain just to use a C++ extension to learn C++ and enjoy learning to code.
@amitj8010
@amitj8010 4 жыл бұрын
Nice to see python in VSCode. Which sentiment library you are using ?
@BruceElgort
@BruceElgort 4 жыл бұрын
Textblob
@sergzach
@sergzach 2 жыл бұрын
Can I debug several different Python programs in VSCode simultaneously? For example, interacting processes.
@Christobanistan
@Christobanistan Жыл бұрын
You would use multiple instances of VS Code for that.
@sureshr2968
@sureshr2968 3 жыл бұрын
At 5.23, he had done something and vs code screen changed. What was that? I don't know what to do.
@whois2517
@whois2517 3 жыл бұрын
😂😂😂😂
@stevezelazny9946
@stevezelazny9946 3 жыл бұрын
More of a marketing "look how great we are" than a true getting started video.
@leeeric6292
@leeeric6292 Жыл бұрын
VScode top 3 for python developers only? Please tell me top 1 and top 2. Thanks.
@cloudbase7799
@cloudbase7799 2 жыл бұрын
How about wicked+cool or wicked%20cool?
@akshaychaudhary8355
@akshaychaudhary8355 4 жыл бұрын
Great video plz make video on version controller
@GarrettH1
@GarrettH1 3 жыл бұрын
code languaged not supported or defined? anyone
@yusuframadhan6259
@yusuframadhan6259 Жыл бұрын
my settings.json didn't appear
@jrgomez
@jrgomez 4 жыл бұрын
Great intro tutorial! Thanks!
@juanbatista6075
@juanbatista6075 2 жыл бұрын
Great job
@max31505
@max31505 4 жыл бұрын
nice introduction+++
@mmuxa3955
@mmuxa3955 3 жыл бұрын
why is he naming folders as " v stool box"? I am confused
@user-or7ji5hv8y
@user-or7ji5hv8y 4 жыл бұрын
also, a more structured concise video is far more useful than something that is half extemporaneous, if I can give some feedback.
@Christobanistan
@Christobanistan Жыл бұрын
Exactly, he was all over the place and the explanations were not clear. Overall it was hard to follow, needed more structure.
@DEV-pm7bw
@DEV-pm7bw 4 жыл бұрын
can i use visual studio 2019 instead of vs code
@Kdog140
@Kdog140 4 жыл бұрын
'vs code' is shot for visual studio code so yes.
@isaiahsgametube2321
@isaiahsgametube2321 Жыл бұрын
good tut thanks
@nikolaristoski1489
@nikolaristoski1489 3 жыл бұрын
Ctrl + Shift + backtick (`) does open a new cmd but without the new virtual environment already activated 15:10
@samkim1410
@samkim1410 3 жыл бұрын
whoa.. i really got to like vscode after this video
@kevinh21labs
@kevinh21labs 3 жыл бұрын
Yep, had to put on my big boy pants and google/Git the file. Took an hour to figure out how to get the file. Now to figure out how to get my environment to look like yours. I'm not a programmer. But I'm trying to learn. This kind of problem, as small as it is, can really derail someone's desire to learn to program. Does it have to be this hard? Maybe / probably just me.....
@EUU100
@EUU100 3 жыл бұрын
don't get demotivated just look for a youtuber that makes tutorials that you understand, there are so many to choose from. i have not even watched this video but already know it will not be useful for someone just getting started. I started my journey in January and haven't looked back since. Focus on sticking with what works for you and if it doesn't, don't hesitate to search for something that does. Good luck
@summorandogamor6826
@summorandogamor6826 4 жыл бұрын
This video was amazing. :)
@younesthabet
@younesthabet 4 жыл бұрын
I got a pylint problem that persists! I tryed everything on the internet to fix it without luck...
@kirkshibley946
@kirkshibley946 2 жыл бұрын
wickedcool!!!
@Hatemaill
@Hatemaill 4 жыл бұрын
I don't have the play button
@josi749j
@josi749j 3 жыл бұрын
Any body notice there last names end with green and white
@slimygoopy4987
@slimygoopy4987 2 жыл бұрын
I still don’t fully understand venv. If Anyone would like to explain, it will be much appreciated
@HakimZainalAbidin
@HakimZainalAbidin 3 жыл бұрын
I think video should be call Introduction of Visual Studio Code for Python. It an ice breaker to understand VS code platform capability with Python. For beginner, I think most probably get lost in the early part of the video.
@Panchtantra2
@Panchtantra2 3 жыл бұрын
very cool
@sergeos5
@sergeos5 4 жыл бұрын
why in vsc and not in vs2019?
@abiabi6733
@abiabi6733 2 жыл бұрын
i know naming is really hard but why he is naming virtual environtment with "pictures"
@Chongweisingapore
@Chongweisingapore 11 ай бұрын
it is alittle easier for me to learn vba first then come to this visual studio and understand some features similiar here thanks. basically use cmp to lauch vs code + add python extension to use python
@slimygoopy4987
@slimygoopy4987 2 жыл бұрын
Theres a problem with activating the venv for me. It’s something to do with the execution policy.
@Christobanistan
@Christobanistan Жыл бұрын
Open an elevated powershell window. Type: Set-ExecutionPolicy RemoteSigned Should do this on every new device you wanna use ps commands on.
@J235304204
@J235304204 4 жыл бұрын
How popular is this, the UI seems to be very complex and confusing.
@Nickdude6
@Nickdude6 4 жыл бұрын
What is happening at 6:36-7:30?
@raj-zo4ev
@raj-zo4ev 4 жыл бұрын
he created a new folder "vstoolbox" and opened that folder in vs code using command line.
@camron1103
@camron1103 3 жыл бұрын
he is just creating a folder using the command prompt and using the command prompt to get to the folder he just made (using the command prompt)
@raysah
@raysah 4 жыл бұрын
How do you remove the file path and version that appears each run you run the script on the terminal, i only want to see the output of my script and nothing else For example, Instead of seeing this output each time PS C:\Users\username\xxxxxx\xxxxxxxxxxxxxxxx> & C:/Users/username/AppData/Local/Programs/Python/Python38-32/python.exe "c:/Users/username/test.py" I only want to see the output of the actual script "Hello World"
@sanuk9650
@sanuk9650 3 жыл бұрын
Visual Studio Code is great code-editor...but don't ignore Visual Studio IDE which is also a great ide for Python but unfortunately the latest version of Python is not supported in that IDE...😒😒 I use Visual Studio for C/C++ & Python
@justjoejoe_0
@justjoejoe_0 4 жыл бұрын
Not going to lie, I almost fell asleep 3 times
@4guns
@4guns 4 жыл бұрын
That is funny stuff right there.
@thuglife896
@thuglife896 3 жыл бұрын
👍
@timostimostimostimos
@timostimostimostimos 2 жыл бұрын
Dustin Hoffman is a coder now?
@boknows8263
@boknows8263 2 жыл бұрын
😂
@garyrowe58
@garyrowe58 2 жыл бұрын
That 'virtual' environment doesn't actually look very 'virtual' ;) If it has its own folders and copies of everything, it seems like its an 'actual' environment!
@MetaJamm
@MetaJamm 2 жыл бұрын
Click download here, okay cool, and click new file here, okay cool, and now draw that source controlled virtually enveronmented frickin owl, my command line lover cumrade! :D
@bhuvaneshs.k638
@bhuvaneshs.k638 4 жыл бұрын
Add Visual Studio to Linux distros....
@1MinuteFlipDoc
@1MinuteFlipDoc 4 жыл бұрын
well..you can have VS Code anyway...
@Skulltroxx
@Skulltroxx 2 жыл бұрын
why are they using Purple for VS Code, when the colour is the first thing that helps us distinguish between VS n VS Code. Bruh
@vibdib
@vibdib 4 жыл бұрын
Are you saying vs code is more popular than anaconda
@googleuser9422
@googleuser9422 4 жыл бұрын
i dont think anaconda is a text editor... ?
@bls512
@bls512 3 жыл бұрын
Tyreke should be the solo host of this show
@twliii1003
@twliii1003 4 жыл бұрын
If anyone sees this: can a virtual machine have programs downloaded that aren't on the users machine so others can play around with your app? Witty comments welcome, but just wanting to learn and see how genuine a community can be. Hope you're staying happy and healthy, reader!
@refactorear
@refactorear 4 жыл бұрын
20:30 millennials 😄
@dhaisa
@dhaisa 4 жыл бұрын
Ffs do one for c/c++ too plz!!....
@samkim1410
@samkim1410 3 жыл бұрын
I don't know if it's just a standard in Korea.. but don't you guys "rehearse" before shooting for such publicity? and some editing would've been nice.
@dadwal2
@dadwal2 3 жыл бұрын
not clear at all , to me
@talkingweevil3172
@talkingweevil3172 3 жыл бұрын
I already know how to do 99% of this stuff...
@nizami8500
@nizami8500 3 жыл бұрын
31
@almuhimen8023
@almuhimen8023 4 жыл бұрын
VS Code is good, but I think I will stick to pycharm.
@Christobanistan
@Christobanistan Жыл бұрын
Advantage of VS Code IMO are: A) Better key bindings; B) can use it for many langs; and C) all features in free version since there's no paid version. Also, VS Code is open source and there's positives for having such a big user base, including many extensions, community support, and employers prefer it. Those are some major intangibles!
@kimdoratisdale6757
@kimdoratisdale6757 Жыл бұрын
Delt the parent control off tablet
@malcolmxparis7158
@malcolmxparis7158 3 жыл бұрын
This was a terrible "Getting Started" video for someone new to Python. He went from "Hello World" to an fairly complex/advanced code "example". Also too many "Uh's". If Constructive Criticism is allowed.
@resurgammedia1511
@resurgammedia1511 3 жыл бұрын
Totally agree, this is not getting started, this is a learn visual studio if you already a programmer....
@petrosstyle2981
@petrosstyle2981 2 жыл бұрын
Don't use VSC for python project, it is not designed for python, there are plenty of other editors that make python developing much easier.. VSC is very good for web development and C++ coding but NOT for python.
New XAML Features in Visual Studio
39:36
Microsoft Visual Studio
Рет қаралды 28 М.
Jupyter Notebooks  in Visual Studio Code
20:50
Microsoft Visual Studio
Рет қаралды 112 М.
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 74 МЛН
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 24 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
👩‍💻 Python for Beginners Tutorial
1:03:21
Kevin Stratvert
Рет қаралды 3,1 МЛН
Don't use VSCode
35:31
PyCon South Africa
Рет қаралды 215 М.
Top 18 Most Useful Python Modules
10:50
Tech With Tim
Рет қаралды 926 М.
My Visual Studio Code Setup for Web Development
13:56
ForrestKnight
Рет қаралды 1 МЛН
Powerful VSCode Tips And Tricks For Python Development And Design
15:50
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,6 МЛН
VS Code Top-Ten Pro Tips
9:36
Fireship
Рет қаралды 1,9 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 1,8 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 106 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 15 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,7 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 2 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 59 МЛН