1
00:00:00,180 --> 00:00:04,019
So the next tool that I'm going to show to you is called patron charm.

2
00:00:04,770 --> 00:00:10,800
So here in our Anaconda Navigator, we have one panel called Pitch ARM Community, which is the free

3
00:00:10,800 --> 00:00:14,670
version, which is totally sufficient and I recommend using this one.

4
00:00:15,480 --> 00:00:16,950
Or you could also use the pouch.

5
00:00:16,950 --> 00:00:19,680
I'm professional, but I think you have to pay something for it.

6
00:00:21,000 --> 00:00:27,790
So in the current installation of Anaconda Petroleum is already installed, so you can just click launch.

7
00:00:28,770 --> 00:00:36,030
If this is not true for you, then maybe you just have to click here, install, or if the panel is

8
00:00:36,030 --> 00:00:43,140
not there at all, then you go to your browser and you Google Pay charm and the correct website to download

9
00:00:43,140 --> 00:00:45,600
it is jet brains dot com.

10
00:00:46,680 --> 00:00:48,750
So let's click on it.

11
00:00:52,060 --> 00:00:58,330
And the website is a bit slow at the moment, wondering why, but here we are.

12
00:00:59,290 --> 00:01:00,210
This pie charm?

13
00:01:01,510 --> 00:01:05,050
Maybe let me change to English so that you can see what's written here.

14
00:01:06,040 --> 00:01:10,150
Yeah, this is the python ideal for professional developers.

15
00:01:10,390 --> 00:01:15,220
Sounds really fancy, and I also think that is really a nice tool to use.

16
00:01:15,850 --> 00:01:18,490
So what you can do then, is click on download.

17
00:01:18,790 --> 00:01:22,030
And as I said, the community edition is totally fine.

18
00:01:23,080 --> 00:01:23,410
All right.

19
00:01:23,420 --> 00:01:26,500
But I think for your case, this should already be installed.

20
00:01:26,510 --> 00:01:29,650
So you just click on launch and you don't have to install anything.

21
00:01:30,730 --> 00:01:33,190
So let's launch by Charm Community.

22
00:01:37,980 --> 00:01:38,970
So here we are.

23
00:01:39,030 --> 00:01:45,450
We are in sign of pie chart, and you see we have lots of things that we can change and it looks a bit

24
00:01:45,690 --> 00:01:49,130
more difficult compared to Jupiter notebook.

25
00:01:49,170 --> 00:01:51,030
And you see here at the bottom right.

26
00:01:51,540 --> 00:01:53,150
It's doing some things.

27
00:01:53,160 --> 00:01:55,620
This is because I opened this for the first time.

28
00:01:56,220 --> 00:02:00,030
And you also see that it's currently using Python 3.9.

29
00:02:00,450 --> 00:02:06,900
And what you could do then, is you could also add another interpreter and install some other version

30
00:02:06,900 --> 00:02:07,530
of Python.

31
00:02:07,560 --> 00:02:11,070
But that's all not really necessary for our cases.

32
00:02:12,000 --> 00:02:19,380
So what we could do now is we could open a file or we could even just drag and drop a file that we want

33
00:02:19,410 --> 00:02:19,950
to run.

34
00:02:20,790 --> 00:02:22,440
So let me do this.

35
00:02:23,430 --> 00:02:30,720
So I just drag and drop the our first notebook file inside of here, and it opens the file.

36
00:02:31,890 --> 00:02:38,730
And you realize that this looks very confusing and doesn't really make sense at all.

37
00:02:39,570 --> 00:02:45,480
And the reason is that a picture can only work with native Python files.

38
00:02:45,630 --> 00:02:50,480
The dots p white files and it cannot use Jupyter notebook files.

39
00:02:51,210 --> 00:02:55,440
So we cannot open up our our first notebook file here.

40
00:02:56,340 --> 00:02:59,340
Or we would have to do that is create a new file.

41
00:02:59,580 --> 00:03:07,560
And this whole Pichon program is really very useful for writing a very complicated, the very large

42
00:03:07,560 --> 00:03:08,310
project.

43
00:03:08,760 --> 00:03:10,860
So it works in terms of projects.

44
00:03:11,520 --> 00:03:18,210
So what do you have to do is you have to click file and then new project.

45
00:03:19,320 --> 00:03:25,560
And now this looks all very difficult and I'm just going to use that is not that difficult at all.

46
00:03:26,250 --> 00:03:32,910
So for example, you write here, you specify the location, I just leave it as it is and right here,

47
00:03:33,390 --> 00:03:40,410
test projects and then the environments and all of this you can leave as it is.

48
00:03:40,740 --> 00:03:48,630
What's just important is that you have the Python three point nine here and here, and you don't just

49
00:03:48,630 --> 00:03:49,680
click Create.

50
00:03:50,880 --> 00:03:56,070
So I would say I click on New Window.

51
00:03:56,080 --> 00:04:01,530
This is because from my old installation, I'm already inside of another project, so I just click New

52
00:04:01,530 --> 00:04:01,980
Window.

53
00:04:02,550 --> 00:04:08,100
And now it runs the program to create a new environment.

54
00:04:09,240 --> 00:04:10,260
Takes a few seconds.

55
00:04:12,540 --> 00:04:14,370
Even has to download something, huh?

56
00:04:14,520 --> 00:04:15,330
I didn't know that.

57
00:04:19,029 --> 00:04:26,020
I think this is because I had already on my PC, an old version of Python, and now there is a new one

58
00:04:26,020 --> 00:04:26,320
here.

59
00:04:27,760 --> 00:04:28,330
All right.

60
00:04:29,500 --> 00:04:38,650
So it comes with a sample Python scripts where you can see it's really a bit more difficult and a bit

61
00:04:38,650 --> 00:04:42,100
more advanced compared to the Jupyter notebook thing.

62
00:04:42,850 --> 00:04:51,370
But I would say, let's delete all of this, and let's just write here once again, some very easy equation

63
00:04:51,880 --> 00:04:53,170
five plus three.

64
00:04:54,310 --> 00:04:58,330
And what I do now is I run this.

65
00:05:00,330 --> 00:05:02,490
And it worked.

66
00:05:03,060 --> 00:05:05,640
And this is what happens in the console.

67
00:05:06,270 --> 00:05:07,520
And it just gives me.

68
00:05:07,830 --> 00:05:12,840
Process finished with exit code zero, which means no error.

69
00:05:13,110 --> 00:05:14,100
Everything worked.

70
00:05:14,820 --> 00:05:15,980
So where's our answer?

71
00:05:15,990 --> 00:05:17,070
Where's our eight?

72
00:05:17,700 --> 00:05:25,890
Well, now the situation is different compared to the Python or the Jupyter notebook file and the Jupiter

73
00:05:25,890 --> 00:05:28,620
notebook file and also in the console.

74
00:05:28,920 --> 00:05:34,080
When we would write something like this, it was it would always directly give us the results.

75
00:05:34,620 --> 00:05:42,060
However, not in a native Python file, because this calculation is done only internally and it does

76
00:05:42,060 --> 00:05:44,790
not give us an output automatically.

77
00:05:45,300 --> 00:05:47,850
We have to specify that it should give us an output.

78
00:05:48,120 --> 00:05:55,650
So, for example, we have to write, print and then in brackets five plus three and then rerun it.

79
00:05:56,700 --> 00:06:00,030
And this time the output is shown here.

80
00:06:01,230 --> 00:06:09,180
For example, we could also define something like a equal to one and then two times a plus one, which

81
00:06:09,180 --> 00:06:10,170
is five.

82
00:06:10,680 --> 00:06:12,630
And then we write print

83
00:06:15,360 --> 00:06:18,240
five times a plus seven.

84
00:06:19,230 --> 00:06:20,640
So maybe let me delete this one.

85
00:06:20,910 --> 00:06:22,860
And now let's see what happens when I run this.

86
00:06:24,200 --> 00:06:25,790
Just gives us as an output.

87
00:06:26,930 --> 00:06:28,190
So let's see what happened here.

88
00:06:28,490 --> 00:06:30,050
We have a is equal to one.

89
00:06:30,170 --> 00:06:34,010
We have two times eight plus one is five.

90
00:06:34,610 --> 00:06:38,900
And then we have five times a, which is five plus seven is 12.

91
00:06:38,990 --> 00:06:40,580
And here we have written down print.

92
00:06:40,700 --> 00:06:44,450
So it only gives us this result and not this one.

93
00:06:45,620 --> 00:06:49,340
So this is really the difference between a Python file and a Jupyter notebook.

94
00:06:49,340 --> 00:06:56,120
File and pie chart is really useful if you have some very complicated project, which even contains

95
00:06:56,120 --> 00:06:57,620
many files that you load.

96
00:06:57,860 --> 00:07:00,290
For example, here you see all the files that are relevant.

97
00:07:00,680 --> 00:07:05,930
But for simple projects and short codes, the Jupyter notebook is, of course, much better.

