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 idea, and it's called Pichon, and it's probably the most popular tool
for Python developers.
So I really, really like it.
But it's an idea that is unlike a code editor, it already comes pre-built with a lot of things.
This company, Jet Brains, makes it and they focus purely on Python developers.
So that is if you're a Python developer, they really focus and 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 on the professional one just comes with a few extra features that we
don't really need.
So download the community on just a heads up.
It's a lot bigger.
It's three hundred and fifteen 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, PI charm is the way to go.
Now, let's fast forward through this so that we're not waiting around for the download.
Who?
All right.
That was a long pause for me, but for you with some editing, this should have been quick, 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 Pae 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 Pecha that I've been using, and you might want
to import your previous setting, but in our case, we've never used Pichon 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, OK, 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 Pichon 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 said default.
So in Pae 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 interpretor.
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 three point seven 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 a tip of the day because this is an I.D., you
get a lot of features that you can read about online.
So it might take you a while to get used to the picture, 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 OK.
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 chart to your liking.
In my case, I want to make sure that I use, let's say, 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 to even bigger.
Let's do 20, I'm going to hit.
OK.
All right, this side is now bigger.
That's great, we can see it, but 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, elby
control instead of command and just zooming in and out as you like.
Now, the interesting thing here with pie charm, I know we have a ton of things that we might not be
familiar with right now, but the key thing is that Python three point seven is running our project.
And if we type something like print.
Hey, 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 at that.
It even gives me typos of English words.
But then I also have this yellow curly bracket or squiggly line.
And it tells me, Pep, no new line at the end of the file, this is something that we're going to talk
about shortly when we talk about formating 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,
asked 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
Ron here.
Look at that, it gives me a error saying, hey, syntax error.
An expected Yossef while parsing 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.
My charm is definitely a great idea.
And the beauty is that unlike sublime text or visual studio code where we had to install all these packages,
pie chart 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 by.