Python - The perfect setup with Miniconda and Visual Studio Code

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay so in this video we'll be setting up Python and installing an edge for us to use um so first step we open a browser we'll go to condo.io and so there are different ways to install and work with python Condor is one of them so Pander is a package dependency environment management system can be used for many different languages but it of course we'll be using python um so it's open source and it's available for both windows Mac OS and Linux so even though I'm working on a Windows installation right now um everything I do here will be quite easy to follow even if you're on a Mac or Linux system and so basically conda allows us to manage all our different packages so alongside python will be installing different packages for different purposes later on and condos one way to manage that um it's quite popular I would say um and it's it's probably the best way to get started um so even kind of comes in two different flavors like the full Honda insulation that already includes a lot of packages then there is a mini conda here which is the which only contains the most basic python patches you'll need so we'll be using mini conduct um and install the pages we need later on so go ahead and click miniconder yeah so Minicon is a free minimal installer so they only include the most basic edges um it comes in both a Windows Mac OS and Linux flavor again we'll be using the windows one so I'll go ahead and download that one okay now it's completed so let's I'm installing that one this one's next we agree so we can install it as just for for this user or we can install it for the whole computer and I would recommend you choose just your own user just me and yes destination folder looks fine um we don't have to add it to our path um go ahead and add Minicon to my path I recommend doing so um more on that later but for now just add it to path it takes a couple of seconds yes but now it's completed I don't need to really getting started guide right now so let's just finish the installation so the next step is to install Visual Studio code so visual studio code is an editor we can use the right Python scripts to debug our Python scripts um and to work like more efficiently with python um so let's let's go ahead um let's search for visual studio code yes so this is the website um of course I'll be installing the windows version I think you can also find a Mac OS and a Linux version and let's I'll go ahead and download the windows version just take a couple of seconds let's see yes accept agreement yeah let's choose this default installation path this is within our user folder as well should be fine yes but now let's create a desktop icon um and let's add these two options so it basically integrates Visual Studio code with our Explorer um yes install yes let's launch Visual Studio code so now we have uh Visual Studio code editor open first of all let's go to the left pane here on the extensions and install the python extension so let's search for Python and it's that first one that pops up made by Microsoft so let's click install now it's installing in a couple of seconds it should be installed yes now that's installed let's go ahead and close that one let's remove this extension pane so now we're ready to rate our first python script so let's go file let's create a new file um the extension will be py it basically means it's a python file so we can choose create a new file py yes let's go and let's let's choose a name let's call it my first script um why created now we see it's already been created here on my desktop this is basically a plain text file with the extension py um and it should Visual Studio code should recognize this Pye it's a python file so you see already in my system it popped up here but you can you can click that one and you can choose the The Interpreter for python files so we see it it's already found my mini kind of reinstallation um so you should choose your Minicon installation as well um so now we basically told Visual Studio code to use our Minicon installation um Power python files so now that we have our python file open let's go ahead and write some really basic python code let's define a new variable call it X I give it a value of 1 and let's try printing that value so let's print X I hit Ctrl s quite a lot to save the files so before I save the file we see that white small dot up here which basically means that the file isn't saved yet so I'll add X and I hit Ctrl s you could also go file and save of course save the file and now let's try running this program we of course will expect it to print out a value of one let's just run without debugging for now we see it open a new terminal here and it output a value of one so it seems to be running fine now
Info
Channel: Jakob Hærvig
Views: 10,548
Rating: undefined out of 5
Keywords: Python, Miniconda, Visual Studio Code
Id: U3VAqCTujpg
Channel Id: undefined
Length: 7min 57sec (477 seconds)
Published: Thu Jan 05 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.