Welcome back.
Up until now, we've talked about Sublime text and Visual Studio code.
Code editors that we had to install a bunch of plug ins and extensions in order to customize it to what
we want.
And they work really well with a ton of different programming languages.
The next one, though, is an ID and it's called pie chart, and it's probably the most popular tool
for Python developers.
So I really, really like it.
But it's an ID that is unlike a code editor.
It already comes prebuilt with a lot of things.
This company, Jeff Brains, makes it and they focus purely on Python developers.
So that is if you're a Python developer, they really focus in make sure that all the tools you need
to succeed are in here.
Now when you click on Download, now you have two versions the professional one which you have to pay
for, and the community one.
So just download the community one.
The professional one just comes with a few extra features that we don't really need.
So download the community one just a heads up.
It's a lot bigger, it's 350 megabytes.
So again, it comes with a lot more tools for us to use.
So it is a little bit heavier than Visual Studio code or sublime text.
But if you're a python developer and you just want an environment where you can do everything in one
place, pie charm is the way to go.
Now, let's fast forward through this so that we're not waiting around for the download view.
All right.
That was a long pause for me, but for you with some editing, this should have been quick.
All right.
If I open this up now again, if you're on windows or if you're on Mac, installation process will be
different in our case because we are on a mac.
I just drag this to application with Windows.
You'll probably go through an installer.
All right, it's all installed.
Now, if I double click pi, charm is going to open up for me.
And we'll just make sure we allow it.
Now, in my case, I had already a previous version of picture that I've been using, and you might
want to import your previous setting, but in our case we've never used pie charm before, and also
most likely you want a fresh install.
So even if you get this type of pop up, you can just click on do not import settings so you get a fresh
slate.
We're going to click.
Okay.
And there we have it.
And right away you can see that.
Well, it gives us a lot of options.
Let's just say I've never used Python before.
And next we get to choose our UI.
Do we want Dracula, which is dark or do we want light?
Let's go with dark for now.
So I'm going to skip the remaining and set defaults.
So in pie charm.
Now we can create a new project.
Now in here, it asks us where we want to create our project.
In my case, we can just leave it over here.
We'll call it my project.
And before we click Create, make sure that you click on this project interpreter.
And double check that our base interpreter is using Python three.
Remember, if you're on a mac or Linux, you might have Python two already installed.
In our case, we installed our Python version 3.7 right here.
So we make sure that this latest version of Python is what's being used as the interpreter.
Now we can just click create.
And our project is going to start for us.
We enclose these tips.
Every once in a while, you get Tip of the Day because this is an ID.
You get a lot of features that you can read about online, so it might take you a while to get used
to pie chart, but it is a very powerful tool.
Let's make this a little bit bigger now with my project here, I can right click say new and then select
file.
Our file.
We'll just call it.
Hi.
Hi, dot pie.
Click.
Okay.
And there we go.
We have our first file opened up and we can just once again say print.
Now this is definitely way too small.
So I'm going to go to pie chart preferences and here it gives you a ton of options to customize pie
charm to your liking.
In my case, I want to make sure that I use, let's say, a custom font, but definitely increase the
size to let's go with 18.
How's that?
Let's apply.
That's better.
You know what I want?
Even bigger.
Let's do 20.
I'm going to hit Och.
All right.
This side is now bigger.
That's great.
We can see it, but.
Hmm.
This is still tiny.
I want this a little bit bigger, so let's fix that as well.
We can fix this easily by pressing command and then using the mouse wheel.
If you have a mouse or using two fingers and zooming in like so if you're on a windows machine, it'll
be control instead of command and just zooming in and out as you like.
Now the interesting thing here with pie chart, I know we have a ton of things that we might not be
familiar with right now, but the key thing is that Python 3.7 is running our project and if we type
something like print.
Hey.
We get a ton of interesting things.
First.
We get a typo saying, Hey, this whole hey hey is not an English word.
If I add spaces, look of that and even gives me typos of English words.
But then I also have this yellow curly bracket or squiggly line.
And it tells me Pep eight no new line at the end of the file.
This is something that we're going to talk about shortly when we talk about formatting our code.
But if I add a new line, look at that.
Everything is working smoothly.
I get a nice little checkmark.
Now I can run this code.
By going to run and then clicking run.
And you can see the shortcut command here as well.
If I run this, ask me, Hey, what do you want to run?
Well, I want to run the new high, high python file.
I click on this and look at that.
Let's make this a little bit bigger.
That's better.
We see that our file is being run.
The process finished with zip code zero zero is a good sign.
It means there were no errors and everything is great.
Now, if we make an error here and let's say I miss my brackets and I hit, run, or I can just click
on run here.
Look at that.
It gives me an error saying, hey, hey, syntax error.
And expect it.
Yoffe While passing and tells you something went wrong.
So once again, I can fix it, run my code and everything is good.
There are a lot of features here that you can explore on your own.
Get comfortable with it.
PY Charm is definitely a great ID and the beauty is that unlike sublime text or Visual Studio code where
we have to install all these packages.
PY Charm comes well with everything built in.
It's an ID.
We don't have to install any of these packages.
This environment is already set up for us to work professionally with Python because it is made for
Python developers.
I'll see you in the next one.
Bye bye.