1 00:00:00,300 --> 00:00:00,870 Welcome back. 2 00:00:01,470 --> 00:00:09,000 Up until now, we've talked about sublime text and visual studio code code editors that we had to install 3 00:00:09,000 --> 00:00:14,070 a bunch of plug ins and extensions in order to customize it to what we want. 4 00:00:14,760 --> 00:00:19,280 And they work really well with a ton of different programming languages. 5 00:00:20,220 --> 00:00:27,810 The next one, though, is an idea, and it's called Pichon, and it's probably the most popular tool 6 00:00:27,810 --> 00:00:29,490 for Python developers. 7 00:00:30,000 --> 00:00:31,800 So I really, really like it. 8 00:00:32,130 --> 00:00:39,380 But it's an idea that is unlike a code editor, it already comes pre-built with a lot of things. 9 00:00:40,290 --> 00:00:45,620 This company, Jet Brains, makes it and they focus purely on Python developers. 10 00:00:46,020 --> 00:00:52,650 So that is if you're a Python developer, they really focus and make sure that all the tools you need 11 00:00:52,650 --> 00:00:54,270 to succeed are in here. 12 00:00:55,520 --> 00:01:03,200 Now, when you click on download, now you have two versions, the professional one, which you have 13 00:01:03,200 --> 00:01:05,570 to pay for and the community one. 14 00:01:05,750 --> 00:01:11,750 So just download the community on the professional one just comes with a few extra features that we 15 00:01:11,750 --> 00:01:12,450 don't really need. 16 00:01:12,560 --> 00:01:15,950 So download the community on just a heads up. 17 00:01:16,100 --> 00:01:17,780 It's a lot bigger. 18 00:01:17,810 --> 00:01:19,880 It's three hundred and fifteen megabytes. 19 00:01:19,910 --> 00:01:23,140 So again, it comes with a lot more tools for us to use. 20 00:01:23,330 --> 00:01:28,190 So it is a little bit heavier than visual studio code or sublime text. 21 00:01:28,760 --> 00:01:34,280 But if you're a Python developer and you just want an environment where you can do everything in one 22 00:01:34,280 --> 00:01:37,140 place, PI charm is the way to go. 23 00:01:37,730 --> 00:01:41,870 Now, let's fast forward through this so that we're not waiting around for the download. 24 00:01:42,260 --> 00:01:42,560 Who? 25 00:01:42,800 --> 00:01:43,280 All right. 26 00:01:43,580 --> 00:01:48,500 That was a long pause for me, but for you with some editing, this should have been quick, right? 27 00:01:48,800 --> 00:01:55,820 If I open this up now, again, if you're on windows or if you're on Mac, installation process will 28 00:01:55,820 --> 00:01:59,270 be different in our case because we are on a Mac. 29 00:01:59,450 --> 00:02:02,450 I just drag this to application with Windows. 30 00:02:02,450 --> 00:02:04,790 You'll probably go through an installer. 31 00:02:06,070 --> 00:02:12,850 All right, it's all installed now if I double click Pae charm is going to open up for me. 32 00:02:14,350 --> 00:02:16,740 And we'll just make sure we allow it. 33 00:02:18,800 --> 00:02:27,950 Now, in my case, I had already a previous version of Pecha that I've been using, and you might want 34 00:02:27,950 --> 00:02:32,420 to import your previous setting, but in our case, we've never used Pichon before. 35 00:02:32,570 --> 00:02:35,690 And also, most likely you want a fresh install. 36 00:02:35,720 --> 00:02:40,580 So even if you get this type of pop up, you can just click on do not import settings. 37 00:02:40,580 --> 00:02:42,110 So you get a fresh slate. 38 00:02:43,230 --> 00:02:51,120 We're going to click, OK, and there we have it and right away you can see that, well, it gives us 39 00:02:51,120 --> 00:02:51,930 a lot of options. 40 00:02:52,500 --> 00:02:54,450 Let's just say I've never used Pichon before. 41 00:02:54,510 --> 00:02:57,030 And next, we get to choose our UI. 42 00:02:57,030 --> 00:03:00,600 Do we want Dracula, which is dark or do we want light? 43 00:03:00,750 --> 00:03:02,070 Let's go with dark for now. 44 00:03:05,030 --> 00:03:08,240 So I'm going to skip the remaining and said default. 45 00:03:12,960 --> 00:03:21,210 So in Pae Charm, now we can create a new project now in here it asks us where we want to create our 46 00:03:21,210 --> 00:03:21,860 project. 47 00:03:21,990 --> 00:03:24,180 In my case, we can just leave it over here. 48 00:03:24,420 --> 00:03:26,460 We'll call it my project. 49 00:03:27,880 --> 00:03:33,790 And before we click, create make sure that you click on this project interpretor. 50 00:03:35,420 --> 00:03:41,720 And double check that our base interpreter is using Python three. 51 00:03:42,470 --> 00:03:47,300 Remember, if you're on a Mac or Linux, you might have Python two already installed. 52 00:03:48,020 --> 00:03:52,910 In our case, we installed our Python version three point seven right here. 53 00:03:52,910 --> 00:03:58,790 So we make sure that this latest version of Python is what's being used as the interpreter. 54 00:03:59,880 --> 00:04:01,650 Now we can just click create. 55 00:04:02,860 --> 00:04:05,110 And our project is going to start for us. 56 00:04:08,740 --> 00:04:14,620 We enclose these tips every once in a while, you get a tip of the day because this is an I.D., you 57 00:04:14,620 --> 00:04:18,880 get a lot of features that you can read about online. 58 00:04:19,570 --> 00:04:25,060 So it might take you a while to get used to the picture, but it is a very powerful tool. 59 00:04:27,180 --> 00:04:34,530 Let's make this a little bit bigger now with my project here, I can right click, say new and then 60 00:04:34,530 --> 00:04:35,790 select file. 61 00:04:36,990 --> 00:04:41,130 Our file, we'll just call it hi, hi, dot pie. 62 00:04:42,280 --> 00:04:43,000 Click OK. 63 00:04:44,600 --> 00:04:52,580 And there we go, we have our first file opened up and we can just once again say print now this is 64 00:04:52,580 --> 00:04:54,080 definitely way too small. 65 00:04:54,320 --> 00:04:57,410 So I'm going to go to pie chart preferences. 66 00:04:57,410 --> 00:05:02,000 And here it gives you a ton of options to customize pie chart to your liking. 67 00:05:02,450 --> 00:05:08,270 In my case, I want to make sure that I use, let's say, custom font, but definitely increase the 68 00:05:08,270 --> 00:05:10,180 size to let's go with 18. 69 00:05:10,220 --> 00:05:10,730 How's that? 70 00:05:10,910 --> 00:05:11,630 Let's apply. 71 00:05:12,820 --> 00:05:13,460 That's better. 72 00:05:13,480 --> 00:05:15,710 You know what, I want to even bigger. 73 00:05:15,730 --> 00:05:18,110 Let's do 20, I'm going to hit. 74 00:05:18,130 --> 00:05:18,630 OK. 75 00:05:20,680 --> 00:05:23,150 All right, this side is now bigger. 76 00:05:23,200 --> 00:05:27,480 That's great, we can see it, but this is still tiny. 77 00:05:27,490 --> 00:05:29,880 I want this a little bit bigger, so let's fix that as well. 78 00:05:30,460 --> 00:05:36,040 We can fix this easily by pressing command and then using the mouse wheel. 79 00:05:36,070 --> 00:05:45,220 If you have a mouse or using two fingers and zooming in like so if you're on a Windows machine, elby 80 00:05:45,220 --> 00:05:50,350 control instead of command and just zooming in and out as you like. 81 00:05:51,320 --> 00:05:57,590 Now, the interesting thing here with pie charm, I know we have a ton of things that we might not be 82 00:05:57,590 --> 00:06:04,130 familiar with right now, but the key thing is that Python three point seven is running our project. 83 00:06:04,520 --> 00:06:06,530 And if we type something like print. 84 00:06:07,870 --> 00:06:08,620 Hey, hey. 85 00:06:10,210 --> 00:06:13,780 We get a ton of interesting things first. 86 00:06:15,320 --> 00:06:23,420 We get a typo saying, hey, this whole hey hey is not an English word, if I add spaces, look at that. 87 00:06:23,420 --> 00:06:26,180 It even gives me typos of English words. 88 00:06:26,510 --> 00:06:31,550 But then I also have this yellow curly bracket or squiggly line. 89 00:06:32,600 --> 00:06:37,610 And it tells me, Pep, no new line at the end of the file, this is something that we're going to talk 90 00:06:37,610 --> 00:06:40,880 about shortly when we talk about formating our code. 91 00:06:41,300 --> 00:06:43,730 But if I add a new line, look at that. 92 00:06:43,920 --> 00:06:45,770 Everything is working smoothly. 93 00:06:45,980 --> 00:06:48,800 I get a nice little checkmark now. 94 00:06:48,800 --> 00:06:50,030 I can run this code. 95 00:06:51,210 --> 00:06:59,220 By going to run and then clicking run and you can see the shortcut command here as well, if I run this, 96 00:07:00,120 --> 00:07:01,620 asked me, hey, what do you want to run? 97 00:07:01,680 --> 00:07:04,850 Well, I want to run the new high, high python file. 98 00:07:05,130 --> 00:07:07,530 I click on this and look at that. 99 00:07:08,010 --> 00:07:09,450 Let's make this a little bit bigger. 100 00:07:09,840 --> 00:07:10,470 That's better. 101 00:07:12,220 --> 00:07:18,400 We see that our file is being run, the process finished with zip code zero zero is a good sign. 102 00:07:18,400 --> 00:07:21,640 It means there were no errors and everything is great. 103 00:07:22,960 --> 00:07:28,810 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 104 00:07:28,810 --> 00:07:29,380 Ron here. 105 00:07:30,880 --> 00:07:34,210 Look at that, it gives me a error saying, hey, syntax error. 106 00:07:35,140 --> 00:07:39,670 An expected Yossef while parsing and tells you something went wrong. 107 00:07:39,760 --> 00:07:44,820 So once again, I can fix it, run my code and everything is good. 108 00:07:45,340 --> 00:07:50,170 There are a lot of features here that you can explore on your own, get comfortable with it. 109 00:07:50,620 --> 00:07:53,530 My charm is definitely a great idea. 110 00:07:53,530 --> 00:08:00,220 And the beauty is that unlike sublime text or visual studio code where we had to install all these packages, 111 00:08:00,550 --> 00:08:04,810 pie chart comes well with everything built in. 112 00:08:04,810 --> 00:08:05,970 It's an ID. 113 00:08:06,430 --> 00:08:09,070 We don't have to install any of these packages. 114 00:08:09,340 --> 00:08:15,460 This environment is already set up for us to work professionally with Python because it is made for 115 00:08:15,460 --> 00:08:16,540 Python developers. 116 00:08:17,340 --> 00:08:19,030 I'll see you in the next one by.