To begin the configuration of Pi charm you need to open up the PI charm application from your Applications
folder.
So this is my applications for the.
And this is Pi chomp so I'm just going to click to launch pi charm.
So when your lunch pi charm for the first time after installation you make this message pop up just
click open.
And that should begin the launch of Pi charm so you may get this option that comes up asking you to
import settings.
If this is the first time you are setting up pi chump there will be nothing to import.
So just click okay and it give you this licensing agreement.
Just click on the box that says I confirm that I have read and accept the terms of this user agreement.
Once you've done that click continue and you get this option here if you want to send information and
just click don't send so you'll get this interface about the key maps scheme and you have two options
here.
I've never used Pi chan before I use Pi chan before so I'll leave the default checked and just click.
Next you can click to skip if you wish to do so and just accept or the default setting someone click
next.
And here it's talking about the UI theme A it basically is the background of the PI charm.
If you want a lighter background this is how it will look if you prefer a darker theme which is checked
on default.
You can leave this darker time but you can always go back to change it later.
It tells you where you can change it in the preferences on the appearance and behavior and then in the
appearance but you can change the theme back if you want to switch.
For now I'm going to accept the default theme and click next to launch script.
Now basically is asking you to create a launch and scrip create a script for opening files and project
if you wish to do so you can.
If not you can skip it at this point.
I'm going to click Skip and accept skip remaining and set the default because from now on it's not really
that much to do you can always go back and change stuff later some will click on that and that would
begin the launch of pie chart.
So when you have these pie jumps scream launched first thing you want to do is configure so click on
this configure port in here and under the configure.
There is an option for preferences or click on preferences.
Okay.
And under preferences there's a lot of things you can do here.
Again if you want to change the theme that's where you can change it.
If you don't like the dark point you want to go light just click on the dropdown you have the option
to change the different things you can also change here.
Okay.
You just feel free to look through at your convenience.
But what I want to set up here is the interpreter interpreters.
Basically what we interpret or the code to a right so that a computer can understand.
So we need to set that up so click on here was called Project interpreter.
Now there is an option if you've visited before.
I'll give you the options if you click on the dropdown it will have the interpreter but because we've
just set this up for the first time we need to select where the interpreter is.
So normally you can select this from the directory where Python was installed so click on this option
here and that will click add and that or kind of like give you this option where you can browse to aware
Python was installed says telling you here.
You can use the base interpreter which is located in this location here which is Python three point
seven.
Now this are like want to use the base interpreter.
If you've used PI's charm before you can use the existing environment.
Also here there are other options here.
There is inherited global unsigned packages so if you want a package that you add to be inherited globally
throughout the computer you can do that.
You can make available to purchase.
I'm gonna leave this option on checked for now.
Because I don't know tie down to anything you can always go back later.
Notice here we've got virtual EMV selected.
If you want to create a virtual petrol enviromental I'll leave that for now.
Don't want to complicate things so click on system interpreter.
So this is the interpreter.
I want the system to use you can see the interpreter selector despite on three point seven.
I'm going to go with that click.
Okay all right.
And you can see is setting everything up.
So now we've got the project interpreter so any time we are creating a project is going to interpret
it using byte on three point seven.
And these are the stuff packages that he's going to use as well.
So once you don't just click Okay so that's the interpreter setup.
We'll wait for it to finish updating the Python interpreter.
Once that has finished updating a tool then give you back the original screen where you will have an
option to create a new Python project.
So it gives us a few minutes to complete.
So now that has completed you back to the original screen here.
Now we can go ahead and create a new project.
So click on this button to create a new project.
You have to give the project a name and it tells you this is the location where the project is going
to be stored.
So I'm just going to remove the default name which is untitled.
I just call it Python course.
All right and project interpreter.
Click on this to rub down here to select the interpreter.
I'm going to be using I will be using this one here existent interpreter which is piped on three point
seven.
That's the one I have checked.
Click create.
OK and that will create the new project you will get this welcome screen.
Feel free to read through if not just close.
You get this.
Each time we open pi charm on less you on check this option here not to show it so click close and here.
Basically you've got the project now being created.
Next thing I want to do is create a python file so to do that you just right click on this project that
I created called Python cause right click go here and there's an option for Python files so create that
I'm just gonna give it a name.
I call it greeting and it will save it with a dot P Y extension because it's a python file so I click
okay and that or create the file.
You can see he's created a file here called Great in the P Way which is here.
So I'm just going to type in a simple code here.
I'm just going to see print inside that print parentheses.
I'm going to just say hello world.
Just got a double P here.
Need to get rid of one of the PS.
All right.
So that effectively is a complete Python statement.
Just one line of code here to say hello world so I'll save that just to command an s.
You can a window you do control an s.
So now that has been save to run that we've got a little play button here but that play button is not
activated the first time to activate it.
You need to run the Perot file from here so right click on the file.
This is great in the P Y and there's an option here that says you run greeting okay to click Run and
you can see here.
This area here is called the console.
Oh right or the terminal.
You can see is output ID this line of code here inside the terminal.
This area here is called the terminal or the console where you can output the code that you run from
within the ED the this area here also has the python console python console is different from the terminal
python console is basically the python shell.
If I click on this now you can see the shell.
This is the interactive shell so if I see two plus two and compress into it to return for because this
is an interactive python shell so I'm going to click on this exe to close the so this area is the editor
area.
See now that we've run the code the first time any time we want to run it again we don't need to right
click on base.
We can just go here you can see the file is highlighted here.
If you have multiple files you want to run you can click on the dropdown and then select which one you
want to run at the moment because we've already executed this file is showing up there.
So if I want to run it again I just click on the play button and you can see here it's this place here.
Notice also here it tells me the path where this file is tall.
So if I wanted to run this file outside of this integrated development environment inside pi charm I
just go to this location here and grab this file and then run it from my terminal.
All right.
So that's very important to know the location of the files.
This file here great in the piece why he's located in this location.
So that is it for this video in this video.
We configure pi charm.
We also created and run a python file.
Thanks for watching and bye for now.