1
00:00:00,060 --> 00:00:06,930
Now you've learned about Jupyter notebook and pie charm, and this one was, of course, best to use

2
00:00:07,320 --> 00:00:08,820
for Jupyter notebook files.

3
00:00:09,210 --> 00:00:12,720
And this one was best to use for a native Python files.

4
00:00:13,050 --> 00:00:19,170
And now I want to show you a program that can deal with both of them and the program that I have been

5
00:00:19,170 --> 00:00:24,340
using in the majority of my time when I'm coding in Python.

6
00:00:24,960 --> 00:00:26,670
And this is called B.S. Coat.

7
00:00:27,390 --> 00:00:32,009
So once again, in this version of an excellent navigator, it's already installed.

8
00:00:32,340 --> 00:00:35,460
If not, then you just have to Google for the code.

9
00:00:35,760 --> 00:00:37,650
And you can download a free version.

10
00:00:38,580 --> 00:00:40,290
So here it's already installed.

11
00:00:40,290 --> 00:00:43,950
So I click on launch and it runs this.

12
00:00:45,000 --> 00:00:47,850
Yeah, a visual studio code.

13
00:00:48,960 --> 00:00:54,990
So, yeah, it recognizes that my PC is German, so it asks me if I want to install a German package,

14
00:00:54,990 --> 00:00:56,130
which I don't want to do.

15
00:00:56,480 --> 00:00:58,140
I want to stay in English.

16
00:00:58,320 --> 00:01:04,260
Then here opens up file with the release notes of the newest version because I have just installed the

17
00:01:04,260 --> 00:01:04,800
program.

18
00:01:05,310 --> 00:01:06,300
We don't need this.

19
00:01:06,660 --> 00:01:07,830
We don't need the settings.

20
00:01:08,460 --> 00:01:13,200
And here is some file that I've been using previously already.

21
00:01:13,950 --> 00:01:15,060
So let me close this.

22
00:01:15,270 --> 00:01:20,280
And let me also get rid of this folder, which we don't need.

23
00:01:20,670 --> 00:01:27,240
And what I'm going to do now is I'm going to open the two files that we have created so far.

24
00:01:28,170 --> 00:01:33,600
So here I'm going to open up the our first notebook, a Python file.

25
00:01:35,100 --> 00:01:36,770
So this didn't work.

26
00:01:36,780 --> 00:01:37,710
Let's try again.

27
00:01:39,350 --> 00:01:39,680
Yeah.

28
00:01:39,860 --> 00:01:45,350
So you have to drag and drop the Python file in the larger window here.

29
00:01:46,250 --> 00:01:52,100
So I trust the authors, of course, because I am the author, so I open this.

30
00:01:52,430 --> 00:01:53,630
And here we go.

31
00:01:53,990 --> 00:01:57,140
We have now ourselves from a python.

32
00:01:57,530 --> 00:02:03,740
And you can just run these so you can, for example, click on this play button here, or you can click

33
00:02:03,740 --> 00:02:04,820
on Shift Enter.

34
00:02:05,360 --> 00:02:10,850
And this will automatically open up such a selector here where you can use your Python version that

35
00:02:10,850 --> 00:02:11,720
you want to use.

36
00:02:12,650 --> 00:02:17,270
So as you can see on my PC, I have also other installations of Python.

37
00:02:17,660 --> 00:02:25,160
For example, I had previously installed a version, Anaconda, that was using three point eight, and

38
00:02:25,160 --> 00:02:29,450
also I downloaded a version of Python from the Windows App Store.

39
00:02:30,740 --> 00:02:34,490
But we are going to use this one that is selected and that's suggested.

40
00:02:35,900 --> 00:02:38,360
And now it's connecting to the kernel.

41
00:02:40,920 --> 00:02:45,720
Takes a bit, and now it has successfully run this cell.

42
00:02:46,290 --> 00:02:47,460
So here you see the result.

43
00:02:47,460 --> 00:02:54,480
And what I also like is it gives us this take that it worked and also the time that it took to calculate

44
00:02:54,480 --> 00:02:54,780
this.

45
00:02:55,500 --> 00:02:57,600
And then, of course, we can click Shift Enter.

46
00:02:57,630 --> 00:03:01,710
And yeah, it's really the same thing as previously.

47
00:03:02,190 --> 00:03:07,800
The only thing that's not working here is this image, but I don't think that is too so bad.

48
00:03:08,580 --> 00:03:11,250
So you see the AI Python files, they worked.

49
00:03:11,910 --> 00:03:14,580
Let's delete this or not delete.

50
00:03:14,580 --> 00:03:19,350
But let's close it, and let's open up the other file that we have just created.

51
00:03:19,560 --> 00:03:22,720
This time, let's open up the other file that we have created.

52
00:03:22,740 --> 00:03:29,370
I go to poach on projects where we have created this test project folder, and I drag and drop the main

53
00:03:29,370 --> 00:03:34,500
file where you recognize the three lines of code that we have written previously.

54
00:03:35,520 --> 00:03:41,850
So here in this visual studio code, I think this is really nicely configured configurator because you

55
00:03:41,850 --> 00:03:49,350
can have this nice color highlighting, for example, if you select the AIV and it will select all the

56
00:03:49,350 --> 00:03:50,460
other apps as well.

57
00:03:50,790 --> 00:03:53,970
If you hover over it, it tells you it's a variable pay.

58
00:03:54,390 --> 00:03:59,190
And if you have our over print, it gives you the syntax of the print command in Python.

59
00:03:59,610 --> 00:04:01,350
So really, it's a nice thing.

60
00:04:02,190 --> 00:04:07,980
And also you see that this interface looks different compared to the case where we had opened the Python

61
00:04:07,980 --> 00:04:11,880
file and I just click here on run.

62
00:04:12,870 --> 00:04:19,019
And what happens now is it opens up a terminal, which in my case is to Windows PowerShell.

63
00:04:19,019 --> 00:04:22,019
For you, this can be a different shell, doesn't really matter that much.

64
00:04:23,040 --> 00:04:29,580
So it gives when Microsoft copy because it's two Windows PowerShell, some stuff in German, which is

65
00:04:29,580 --> 00:04:30,450
not important.

66
00:04:30,960 --> 00:04:37,710
And it's just a typical command line, just a shell where I'm currently in this directory for whatever

67
00:04:37,710 --> 00:04:38,040
reason.

68
00:04:38,040 --> 00:04:38,520
I don't know.

69
00:04:38,940 --> 00:04:46,950
And what we have done by clicking play is we have told it to run this file and I have done this already,

70
00:04:46,950 --> 00:04:47,850
previously, once.

71
00:04:47,850 --> 00:04:55,060
So this is why you have it twice here and the output is just trough, as we had in the previous cases.

72
00:04:55,060 --> 00:05:00,210
So it just gives us the print command off five times OnePlus seven, which is 12.

73
00:05:01,320 --> 00:05:09,090
So summarizing this lecture, we have explored the capabilities of Visual Studio Code, and I really

74
00:05:09,090 --> 00:05:14,070
like it because it can deal with native Python files as well as Jupyter notebooks.

75
00:05:14,520 --> 00:05:20,640
It has a nice color highlighting, and it just looks nice in general, which is why I'm using it personally

76
00:05:20,640 --> 00:05:21,030
a lot.

77
00:05:21,720 --> 00:05:29,100
However, for the majority of the course, I will stick to Jupiter Notebook because it's the most simple

78
00:05:29,100 --> 00:05:34,980
thing and everybody can use it very easily and you just have to install Anaconda and then you're ready

79
00:05:34,980 --> 00:05:35,400
to go.

