1 00:00:00,300 --> 00:00:11,970 To begin the configuration of Pi charm you need to open up the PI charm application from your Applications 2 00:00:11,970 --> 00:00:12,460 folder. 3 00:00:12,660 --> 00:00:14,880 So this is my applications for the. 4 00:00:15,030 --> 00:00:20,220 And this is Pi chomp so I'm just going to click to launch pi charm. 5 00:00:20,460 --> 00:00:29,820 So when your lunch pi charm for the first time after installation you make this message pop up just 6 00:00:29,820 --> 00:00:31,630 click open. 7 00:00:31,630 --> 00:00:41,610 And that should begin the launch of Pi charm so you may get this option that comes up asking you to 8 00:00:41,670 --> 00:00:43,590 import settings. 9 00:00:43,650 --> 00:00:50,200 If this is the first time you are setting up pi chump there will be nothing to import. 10 00:00:50,280 --> 00:00:57,140 So just click okay and it give you this licensing agreement. 11 00:00:57,180 --> 00:01:07,110 Just click on the box that says I confirm that I have read and accept the terms of this user agreement. 12 00:01:07,110 --> 00:01:14,820 Once you've done that click continue and you get this option here if you want to send information and 13 00:01:14,820 --> 00:01:23,100 just click don't send so you'll get this interface about the key maps scheme and you have two options 14 00:01:23,100 --> 00:01:23,290 here. 15 00:01:23,280 --> 00:01:31,280 I've never used Pi chan before I use Pi chan before so I'll leave the default checked and just click. 16 00:01:31,280 --> 00:01:38,550 Next you can click to skip if you wish to do so and just accept or the default setting someone click 17 00:01:38,670 --> 00:01:39,340 next. 18 00:01:40,140 --> 00:01:48,260 And here it's talking about the UI theme A it basically is the background of the PI charm. 19 00:01:48,390 --> 00:01:54,930 If you want a lighter background this is how it will look if you prefer a darker theme which is checked 20 00:01:54,930 --> 00:01:55,550 on default. 21 00:01:55,560 --> 00:02:00,640 You can leave this darker time but you can always go back to change it later. 22 00:02:00,720 --> 00:02:07,800 It tells you where you can change it in the preferences on the appearance and behavior and then in the 23 00:02:07,800 --> 00:02:12,110 appearance but you can change the theme back if you want to switch. 24 00:02:12,120 --> 00:02:20,200 For now I'm going to accept the default theme and click next to launch script. 25 00:02:20,430 --> 00:02:27,570 Now basically is asking you to create a launch and scrip create a script for opening files and project 26 00:02:27,600 --> 00:02:29,100 if you wish to do so you can. 27 00:02:29,100 --> 00:02:32,220 If not you can skip it at this point. 28 00:02:32,220 --> 00:02:40,020 I'm going to click Skip and accept skip remaining and set the default because from now on it's not really 29 00:02:40,050 --> 00:02:46,740 that much to do you can always go back and change stuff later some will click on that and that would 30 00:02:46,860 --> 00:02:49,470 begin the launch of pie chart. 31 00:02:49,950 --> 00:02:57,150 So when you have these pie jumps scream launched first thing you want to do is configure so click on 32 00:02:57,150 --> 00:03:02,370 this configure port in here and under the configure. 33 00:03:02,370 --> 00:03:08,160 There is an option for preferences or click on preferences. 34 00:03:08,850 --> 00:03:09,820 Okay. 35 00:03:10,170 --> 00:03:13,200 And under preferences there's a lot of things you can do here. 36 00:03:13,200 --> 00:03:16,740 Again if you want to change the theme that's where you can change it. 37 00:03:16,770 --> 00:03:22,260 If you don't like the dark point you want to go light just click on the dropdown you have the option 38 00:03:22,260 --> 00:03:27,170 to change the different things you can also change here. 39 00:03:27,170 --> 00:03:27,580 Okay. 40 00:03:27,600 --> 00:03:30,160 You just feel free to look through at your convenience. 41 00:03:30,180 --> 00:03:35,580 But what I want to set up here is the interpreter interpreters. 42 00:03:35,580 --> 00:03:40,470 Basically what we interpret or the code to a right so that a computer can understand. 43 00:03:40,470 --> 00:03:45,680 So we need to set that up so click on here was called Project interpreter. 44 00:03:45,720 --> 00:03:49,890 Now there is an option if you've visited before. 45 00:03:49,890 --> 00:03:56,070 I'll give you the options if you click on the dropdown it will have the interpreter but because we've 46 00:03:56,100 --> 00:04:01,290 just set this up for the first time we need to select where the interpreter is. 47 00:04:01,350 --> 00:04:08,640 So normally you can select this from the directory where Python was installed so click on this option 48 00:04:08,640 --> 00:04:17,940 here and that will click add and that or kind of like give you this option where you can browse to aware 49 00:04:18,120 --> 00:04:22,210 Python was installed says telling you here. 50 00:04:22,500 --> 00:04:30,510 You can use the base interpreter which is located in this location here which is Python three point 51 00:04:30,510 --> 00:04:31,430 seven. 52 00:04:31,440 --> 00:04:35,850 Now this are like want to use the base interpreter. 53 00:04:35,850 --> 00:04:41,750 If you've used PI's charm before you can use the existing environment. 54 00:04:41,820 --> 00:04:44,980 Also here there are other options here. 55 00:04:45,030 --> 00:04:54,450 There is inherited global unsigned packages so if you want a package that you add to be inherited globally 56 00:04:54,450 --> 00:04:56,680 throughout the computer you can do that. 57 00:04:56,790 --> 00:04:59,070 You can make available to purchase. 58 00:04:59,070 --> 00:05:02,200 I'm gonna leave this option on checked for now. 59 00:05:02,220 --> 00:05:07,900 Because I don't know tie down to anything you can always go back later. 60 00:05:08,040 --> 00:05:12,610 Notice here we've got virtual EMV selected. 61 00:05:13,140 --> 00:05:17,360 If you want to create a virtual petrol enviromental I'll leave that for now. 62 00:05:17,370 --> 00:05:22,590 Don't want to complicate things so click on system interpreter. 63 00:05:22,920 --> 00:05:24,170 So this is the interpreter. 64 00:05:24,180 --> 00:05:29,670 I want the system to use you can see the interpreter selector despite on three point seven. 65 00:05:29,670 --> 00:05:32,240 I'm going to go with that click. 66 00:05:32,280 --> 00:05:34,220 Okay all right. 67 00:05:34,360 --> 00:05:36,510 And you can see is setting everything up. 68 00:05:36,510 --> 00:05:43,620 So now we've got the project interpreter so any time we are creating a project is going to interpret 69 00:05:43,640 --> 00:05:46,820 it using byte on three point seven. 70 00:05:46,890 --> 00:05:51,990 And these are the stuff packages that he's going to use as well. 71 00:05:51,990 --> 00:05:56,890 So once you don't just click Okay so that's the interpreter setup. 72 00:05:57,060 --> 00:06:02,490 We'll wait for it to finish updating the Python interpreter. 73 00:06:02,490 --> 00:06:11,880 Once that has finished updating a tool then give you back the original screen where you will have an 74 00:06:11,910 --> 00:06:16,750 option to create a new Python project. 75 00:06:16,830 --> 00:06:19,710 So it gives us a few minutes to complete. 76 00:06:19,950 --> 00:06:23,670 So now that has completed you back to the original screen here. 77 00:06:23,670 --> 00:06:26,830 Now we can go ahead and create a new project. 78 00:06:27,000 --> 00:06:30,670 So click on this button to create a new project. 79 00:06:30,810 --> 00:06:36,960 You have to give the project a name and it tells you this is the location where the project is going 80 00:06:36,960 --> 00:06:37,790 to be stored. 81 00:06:37,790 --> 00:06:42,350 So I'm just going to remove the default name which is untitled. 82 00:06:42,390 --> 00:06:46,360 I just call it Python course. 83 00:06:46,380 --> 00:06:51,030 All right and project interpreter. 84 00:06:51,450 --> 00:06:55,690 Click on this to rub down here to select the interpreter. 85 00:06:55,700 --> 00:07:03,810 I'm going to be using I will be using this one here existent interpreter which is piped on three point 86 00:07:03,810 --> 00:07:04,330 seven. 87 00:07:04,390 --> 00:07:06,900 That's the one I have checked. 88 00:07:06,900 --> 00:07:08,770 Click create. 89 00:07:09,640 --> 00:07:14,760 OK and that will create the new project you will get this welcome screen. 90 00:07:14,760 --> 00:07:18,410 Feel free to read through if not just close. 91 00:07:18,570 --> 00:07:19,350 You get this. 92 00:07:19,350 --> 00:07:28,380 Each time we open pi charm on less you on check this option here not to show it so click close and here. 93 00:07:28,380 --> 00:07:32,120 Basically you've got the project now being created. 94 00:07:32,250 --> 00:07:39,750 Next thing I want to do is create a python file so to do that you just right click on this project that 95 00:07:39,750 --> 00:07:47,580 I created called Python cause right click go here and there's an option for Python files so create that 96 00:07:48,210 --> 00:07:49,550 I'm just gonna give it a name. 97 00:07:49,590 --> 00:07:58,710 I call it greeting and it will save it with a dot P Y extension because it's a python file so I click 98 00:07:58,830 --> 00:08:02,020 okay and that or create the file. 99 00:08:02,050 --> 00:08:06,960 You can see he's created a file here called Great in the P Way which is here. 100 00:08:06,960 --> 00:08:10,590 So I'm just going to type in a simple code here. 101 00:08:10,620 --> 00:08:17,890 I'm just going to see print inside that print parentheses. 102 00:08:17,980 --> 00:08:21,900 I'm going to just say hello world. 103 00:08:21,940 --> 00:08:24,040 Just got a double P here. 104 00:08:24,070 --> 00:08:25,910 Need to get rid of one of the PS. 105 00:08:25,970 --> 00:08:26,310 All right. 106 00:08:26,310 --> 00:08:31,830 So that effectively is a complete Python statement. 107 00:08:31,830 --> 00:08:42,560 Just one line of code here to say hello world so I'll save that just to command an s. 108 00:08:42,690 --> 00:08:45,670 You can a window you do control an s. 109 00:08:45,720 --> 00:08:52,440 So now that has been save to run that we've got a little play button here but that play button is not 110 00:08:52,500 --> 00:08:55,520 activated the first time to activate it. 111 00:08:55,530 --> 00:08:59,780 You need to run the Perot file from here so right click on the file. 112 00:08:59,790 --> 00:09:08,010 This is great in the P Y and there's an option here that says you run greeting okay to click Run and 113 00:09:08,010 --> 00:09:08,780 you can see here. 114 00:09:08,790 --> 00:09:11,480 This area here is called the console. 115 00:09:11,970 --> 00:09:13,550 Oh right or the terminal. 116 00:09:13,560 --> 00:09:20,010 You can see is output ID this line of code here inside the terminal. 117 00:09:20,010 --> 00:09:27,510 This area here is called the terminal or the console where you can output the code that you run from 118 00:09:27,630 --> 00:09:37,140 within the ED the this area here also has the python console python console is different from the terminal 119 00:09:37,680 --> 00:09:40,580 python console is basically the python shell. 120 00:09:40,690 --> 00:09:43,560 If I click on this now you can see the shell. 121 00:09:43,560 --> 00:09:53,820 This is the interactive shell so if I see two plus two and compress into it to return for because this 122 00:09:53,820 --> 00:10:03,600 is an interactive python shell so I'm going to click on this exe to close the so this area is the editor 123 00:10:03,910 --> 00:10:04,470 area. 124 00:10:04,480 --> 00:10:09,710 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 125 00:10:09,710 --> 00:10:10,790 click on base. 126 00:10:10,940 --> 00:10:14,770 We can just go here you can see the file is highlighted here. 127 00:10:14,810 --> 00:10:19,790 If you have multiple files you want to run you can click on the dropdown and then select which one you 128 00:10:19,790 --> 00:10:24,820 want to run at the moment because we've already executed this file is showing up there. 129 00:10:24,820 --> 00:10:31,940 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. 130 00:10:31,940 --> 00:10:37,540 Notice also here it tells me the path where this file is tall. 131 00:10:37,550 --> 00:10:45,890 So if I wanted to run this file outside of this integrated development environment inside pi charm I 132 00:10:45,890 --> 00:10:53,110 just go to this location here and grab this file and then run it from my terminal. 133 00:10:53,120 --> 00:10:53,530 All right. 134 00:10:53,540 --> 00:10:56,740 So that's very important to know the location of the files. 135 00:10:56,750 --> 00:11:02,000 This file here great in the piece why he's located in this location. 136 00:11:02,660 --> 00:11:07,030 So that is it for this video in this video. 137 00:11:07,190 --> 00:11:09,330 We configure pi charm. 138 00:11:09,410 --> 00:11:15,080 We also created and run a python file. 139 00:11:15,080 --> 00:11:17,120 Thanks for watching and bye for now.