1
00:00:00,150 --> 00:00:07,320
Hi, in this video, you will learn how to use the repl IDE. Now, repl is the name of the IDE and

2
00:00:07,320 --> 00:00:13,800
IDE, as you may know, stands for Integrated Development Environment, which is basically a text editor

3
00:00:13,800 --> 00:00:16,200
where you develop your Python programs.

4
00:00:16,620 --> 00:00:18,140
But it's not just an editor.

5
00:00:18,150 --> 00:00:25,230
It has also some extra features which helps you during the development process, and repl has those

6
00:00:25,230 --> 00:00:25,620
features.

7
00:00:26,220 --> 00:00:34,320
The points we will cover in this video are how to navigate the repl directory, then how to create

8
00:00:34,320 --> 00:00:40,770
a new repl and write and run Python codes in that repl, how to install Python packages, how to

9
00:00:40,770 --> 00:00:45,690
create more Python files, or other files in your repl environment.

10
00:00:45,930 --> 00:00:53,340
How to upload files in repl. So those are basic concepts, then we will go to more advanced concepts

11
00:00:53,340 --> 00:01:00,510
such as how to use Git, how to debug your code by using the repl debugger, how to change the settings

12
00:01:00,510 --> 00:01:06,960
of your repl environment, and also you'll learn how to share your repl with other people so they can

13
00:01:07,170 --> 00:01:10,860
see or copy your codes and use the same repl.

14
00:01:11,250 --> 00:01:15,420
And you'll also learn how to collaborate with others in the same repl.

15
00:01:16,330 --> 00:01:22,840
I do recommend it to take notes because you may need these things during the course.

16
00:01:23,780 --> 00:01:29,360
One note, though, if you have your own favorite IDE, feel free to use it.

17
00:01:29,690 --> 00:01:36,650
But I do recommend you to give Revel a try because it does have features which you will not find in

18
00:01:36,920 --> 00:01:38,600
traditional IDEs.

19
00:01:39,140 --> 00:01:40,070
So give it a try.

20
00:01:40,250 --> 00:01:42,500
Let's start with the first point.

21
00:01:43,190 --> 00:01:44,630
The project directory.

22
00:01:44,750 --> 00:01:49,790
So after you sign up, you should be able to create a new folders and new reports.

23
00:01:50,120 --> 00:01:55,040
Basically, what you want to do is create folders to organize your rivals inside folders.

24
00:01:55,490 --> 00:02:03,710
Let's say this would be the introduction folder, so that's created a new introduction folder.

25
00:02:03,950 --> 00:02:06,950
I can go inside that folder and create the new report.

26
00:02:08,680 --> 00:02:15,690
Now, there are several languages that the rebels supports, the one we want to choose is Python.

27
00:02:16,570 --> 00:02:19,330
Then you can give a name to your apple.

28
00:02:23,100 --> 00:02:25,230
I'll just call this introduction script.

29
00:02:26,350 --> 00:02:27,760
And Press on creates Ripple.

30
00:02:28,270 --> 00:02:32,680
Now this introduction script is not the name of the Python file.

31
00:02:33,280 --> 00:02:35,050
It just the name of the Ripple.

32
00:02:35,230 --> 00:02:42,760
And a ripple, as you will see now, is basically a computer which you can access from your browser.

33
00:02:42,770 --> 00:02:44,740
And in this computer, you have files.

34
00:02:46,140 --> 00:02:51,210
So we can start coding right away in this main PUOi file.

35
00:02:56,470 --> 00:03:04,660
As you can see, rebel support, syntax highlighting and also codes introspection on the fly, so you

36
00:03:04,660 --> 00:03:11,890
can see that this is highlighting what arguments we can pass to the print function right when you're

37
00:03:11,890 --> 00:03:19,480
still inside these brackets, the window with shut up when you are typing to run, just press the wrong

38
00:03:19,480 --> 00:03:19,840
button.

39
00:03:20,620 --> 00:03:22,540
And here you see the output.

40
00:03:23,670 --> 00:03:30,000
Now installing packages, Python packages in a raffle, you can install any package that you like.

41
00:03:30,390 --> 00:03:38,460
All you have to do is go to these packages tool here and you should be able to search for packages such

42
00:03:38,460 --> 00:03:39,270
as pandas.

43
00:03:41,140 --> 00:03:47,090
And then be careful what you install here, so we want pandas.

44
00:03:47,110 --> 00:03:47,950
The second one.

45
00:03:49,110 --> 00:03:51,960
Not panders to I don't know what that is.

46
00:03:55,360 --> 00:03:58,030
And Ripple will install that package for you.

47
00:04:04,270 --> 00:04:11,260
And if you see this green window, that means pandas, the library has been installed, you can go ahead

48
00:04:11,260 --> 00:04:11,950
and imported.

49
00:04:14,930 --> 00:04:15,350
Arun.

50
00:04:17,360 --> 00:04:18,769
So we didn't get any errors.

51
00:04:19,430 --> 00:04:20,120
We got this.

52
00:04:21,230 --> 00:04:25,190
Printed out and Panas hasn't been imported since we didn't get those.

53
00:04:26,570 --> 00:04:33,740
You can go back to the first tool to go to your files and you can create more Python files if you like.

54
00:04:36,450 --> 00:04:41,220
Let's say calculate the P Y, let's say X equals 10.

55
00:04:41,520 --> 00:04:47,460
And then from Maine, those p y you can import calculate.

56
00:04:48,360 --> 00:04:49,860
And of course, you can use.

57
00:04:52,640 --> 00:04:56,780
The attributes of calculate, which is X in this case, run.

58
00:04:58,620 --> 00:05:01,860
And you get Helloworld printed out and also 10.

59
00:05:03,080 --> 00:05:09,830
So what happens when you do run is that a rapper will always run the main profile.

60
00:05:10,190 --> 00:05:16,760
So it basically executes the command python main that people why owned the terminal?

61
00:05:17,420 --> 00:05:24,800
In other words, your main script, which is the entry point of your projects, should be made in those

62
00:05:24,800 --> 00:05:25,310
few way.

63
00:05:26,150 --> 00:05:33,350
Besides --, you can also create other type of files that are not directly, for example,

64
00:05:34,190 --> 00:05:37,790
and you can use the editor to add content.

65
00:05:38,480 --> 00:05:43,610
You can also create other extensions, such as Delta 6V.

66
00:05:45,040 --> 00:05:46,630
So there you go.

67
00:05:47,620 --> 00:05:53,440
And you can also organize your projects into different folders, so with that button, you can create

68
00:05:53,470 --> 00:06:02,170
a folder, for example files, and you can drag and drop files into that folder, right?

69
00:06:04,360 --> 00:06:13,300
You can also use these dots to go to the upload file menu and upload a file from your computer to rebel.

70
00:06:14,560 --> 00:06:18,070
Depending on the file, it should take a while until the file uploads.

71
00:06:18,610 --> 00:06:20,140
And if you click the file.

72
00:06:23,700 --> 00:06:26,430
A raffle should be able to play it.

73
00:06:27,870 --> 00:06:35,400
Even though Odin's rely on a rifle to watch movies, we're crossing the line here so you can create

74
00:06:35,400 --> 00:06:40,920
and upload files in Europol next using Get.

75
00:06:41,790 --> 00:06:48,090
If you go to the second menu, you can create a guide to report a repository.

76
00:06:48,420 --> 00:06:51,630
So what is GIDS gets is a version control system.

77
00:06:52,020 --> 00:06:55,530
It helps you manage the versions of your programs.

78
00:06:56,220 --> 00:07:01,650
So if you write a program and you write it up to a point, but then you want to go back to a previous

79
00:07:01,650 --> 00:07:02,970
state of your program.

80
00:07:03,390 --> 00:07:05,040
You can use it for that.

81
00:07:05,580 --> 00:07:14,880
And GitHub, then, is a cloud repository where you upload your programs and that works like a backup

82
00:07:15,360 --> 00:07:22,680
of your program, but also as a collaboration tool so others can get your code from GitHub and use it.

83
00:07:23,040 --> 00:07:28,770
So first, let's explain, gets a bit more how it works on a raffle.

84
00:07:29,850 --> 00:07:38,370
So as you develop your programs, you want to do commits, which are basically records of your state

85
00:07:38,370 --> 00:07:39,150
of your program.

86
00:07:39,360 --> 00:07:43,100
For example, let's say we write the program up to here.

87
00:07:45,130 --> 00:07:46,200
Hi again.

88
00:07:47,410 --> 00:07:52,000
And then you want to do a commit to record this code.

89
00:07:52,240 --> 00:07:57,700
So let's say you want to see ad high again message.

90
00:07:58,820 --> 00:08:01,270
Then you press comets and push.

91
00:08:02,350 --> 00:08:05,230
So what's happened is that now we have two commits.

92
00:08:05,590 --> 00:08:07,720
The first commit was an automatic one.

93
00:08:08,440 --> 00:08:09,280
So this year?

94
00:08:10,430 --> 00:08:17,240
This one was manual from us, so only the first committee is automatic, but then the other ones, it's

95
00:08:17,240 --> 00:08:17,810
up to you.

96
00:08:18,290 --> 00:08:21,590
So for example, let's say you want to keep going.

97
00:08:22,160 --> 00:08:26,540
That's maybe a function Fu X Return X.

98
00:08:26,900 --> 00:08:29,270
You want to register this feature now.

99
00:08:29,390 --> 00:08:37,850
So you see again commits that function to return X, for example, commit and push.

100
00:08:39,929 --> 00:08:41,730
And so now we have three commits.

101
00:08:42,870 --> 00:08:51,270
The benefits of getting out is that if you don't want this function anymore, so you want to go to the

102
00:08:51,270 --> 00:08:53,040
previous state of the program.

103
00:08:53,280 --> 00:08:56,100
Of course, you could deliver this function or press control.

104
00:08:56,100 --> 00:08:57,020
That's to undo it.

105
00:08:57,030 --> 00:09:04,320
But imagine when you enter codes here to answer some codes here between the lines, so it becomes complex.

106
00:09:04,980 --> 00:09:09,000
In that case, the best way to do is to go to the previous commits.

107
00:09:09,930 --> 00:09:17,430
So to the committee where we said I again message at high again, message and press on reverse.

108
00:09:17,430 --> 00:09:23,250
It's here, confirm and triple will delete that function.

109
00:09:23,970 --> 00:09:25,840
And that happens using it.

110
00:09:26,110 --> 00:09:26,970
No GitHub.

111
00:09:27,750 --> 00:09:30,900
If you scroll up, you'll see these bots and connect to GitHub.

112
00:09:37,170 --> 00:09:42,510
And you should have a GitHub account, you can create one on GitHub that's.

113
00:09:42,510 --> 00:09:42,780
Com.

114
00:09:42,960 --> 00:09:48,870
Once you create that account, you can log in here and then you can create two repositories for your

115
00:09:48,870 --> 00:09:51,810
GitHub remote's cloud account.

116
00:09:52,080 --> 00:09:55,040
So, for example, let's say this is introduction script.

117
00:09:55,050 --> 00:09:56,490
You can choose any name you want.

118
00:09:56,610 --> 00:10:02,430
You can keep its public or private if you want everyone to see your report on the internet.

119
00:10:03,060 --> 00:10:06,720
You can press on public, otherwise keep it private.

120
00:10:07,050 --> 00:10:08,790
Create GitHub repository.

121
00:10:09,840 --> 00:10:12,480
And then if you go to GitHub dot com.

122
00:10:14,250 --> 00:10:15,540
So this is my getup.

123
00:10:16,110 --> 00:10:16,710
And.

124
00:10:17,720 --> 00:10:25,430
I have a GitHub account here, and you see that this is a repository we just created, so it's forty

125
00:10:25,460 --> 00:10:27,290
one seconds ago.

126
00:10:28,130 --> 00:10:28,730
44.

127
00:10:29,960 --> 00:10:37,250
So if you click on there, you'll see here we have all the files that we had on Ripple.

128
00:10:38,120 --> 00:10:39,950
So they are synchronized here.

129
00:10:40,280 --> 00:10:46,130
We also have some extra files which are created by default, such as this configuration files, but

130
00:10:46,130 --> 00:10:48,620
we don't need them, so let them see their.

131
00:10:49,710 --> 00:10:52,080
And again, you can keep adding codes.

132
00:10:53,230 --> 00:10:55,420
Print, bye bye.

133
00:10:57,490 --> 00:11:04,000
At by message as a committed message and press on commit and push.

134
00:11:05,080 --> 00:11:10,750
And that should synchronize now with your GitHub repository as well.

135
00:11:12,150 --> 00:11:14,910
So let's check that if you refresh.

136
00:11:15,570 --> 00:11:22,350
You see now that the main that profile has this comet message at by message.

137
00:11:22,650 --> 00:11:26,100
So that's the lost comet for that particular file.

138
00:11:26,310 --> 00:11:33,570
You don't see the same message with the other files because they were not changed in that particular

139
00:11:33,570 --> 00:11:34,140
comet.

140
00:11:34,530 --> 00:11:41,970
The last comet calculates the P Y was changed was in the first comet in the initial automatic comet.

141
00:11:42,510 --> 00:11:49,710
So if you click on Main that people, I know you will see the change that was applied to vets the last

142
00:11:49,710 --> 00:11:50,850
particular comet.

143
00:11:52,270 --> 00:11:53,620
That one, right?

144
00:11:53,860 --> 00:11:58,390
So that was a crash course on Gates and Gates hub as well.

145
00:11:59,590 --> 00:12:05,720
Now the debugger, which is a very nice feature, very minimalistic but very powerful of good.

146
00:12:06,310 --> 00:12:14,650
Let's suppose we have this called X equals to ten and to Y equals two x times to Z.

147
00:12:14,680 --> 00:12:21,010
You can see why plus 20 percent z run.

148
00:12:22,060 --> 00:12:26,290
So when I press this run button, I'm running the script, have entire scripts.

149
00:12:26,500 --> 00:12:28,240
I'm not using any debugger.

150
00:12:28,450 --> 00:12:37,390
But if you want to know the value of Y, for example, and you don't want to enter a print function

151
00:12:37,390 --> 00:12:43,090
here just to see the value of Y, what you can do is use the debugger.

152
00:12:44,120 --> 00:12:51,560
What you do is you set a break points, you click somewhere in this area here next to the line, where

153
00:12:51,560 --> 00:12:55,490
do you want the script execution to stop to hold?

154
00:12:55,670 --> 00:12:57,540
So I got two break points.

155
00:12:57,580 --> 00:12:58,970
Now I want only one.

156
00:12:58,970 --> 00:13:03,110
So to remove that first one, I can click there and it disappears.

157
00:13:03,740 --> 00:13:07,190
So make sure that the breakpoint is in line.

158
00:13:07,190 --> 00:13:07,850
Three.

159
00:13:08,600 --> 00:13:14,720
So this one here you also see the three in here and then press this button here next to the debugger

160
00:13:14,720 --> 00:13:15,080
tool.

161
00:13:17,090 --> 00:13:25,490
And you should see some information down here, so we see the value of X is 10 and the value of Y is

162
00:13:25,490 --> 00:13:25,910
twenty.

163
00:13:26,880 --> 00:13:30,960
We don't see the value of assets because we said the break points here.

164
00:13:31,260 --> 00:13:34,560
So this line is not executed where the breakpoint is.

165
00:13:35,220 --> 00:13:39,870
So that's about the debugger is very helpful when you have problems with your codes.

166
00:13:40,320 --> 00:13:47,520
So if you we were not getting the expected value for that, we would want to check the value of its

167
00:13:48,060 --> 00:13:49,200
dependence.

168
00:13:49,860 --> 00:13:54,330
So this is being calculated from Y and X.

169
00:13:54,880 --> 00:13:59,550
The debugger is a good way to check that and then you can stop the debugger in here.

170
00:14:01,080 --> 00:14:05,340
Remove the checkpoints and then you can run the codes as usual.

171
00:14:06,820 --> 00:14:12,970
Now in this council, you can also writes codes interactively, so this works as an interactive python

172
00:14:12,970 --> 00:14:13,750
shell as well.

173
00:14:14,170 --> 00:14:16,570
This shell is the Linux terminal.

174
00:14:16,990 --> 00:14:23,470
You don't usually need it, but when we need it, I'll tell you what we can do with this in the future

175
00:14:23,470 --> 00:14:27,310
programs that will be built in the course, then we have the settings.

176
00:14:28,180 --> 00:14:30,790
So these are self-explanatory.

177
00:14:30,940 --> 00:14:37,720
So if you want to change something, you can do so and see how ripple changes to share your ripple.

178
00:14:37,960 --> 00:14:39,940
You can just copy this code.

179
00:14:41,230 --> 00:14:48,370
And give it to anyone you want, and they should be able to open that URL and should see something like

180
00:14:48,370 --> 00:14:48,670
this.

181
00:14:49,090 --> 00:14:54,100
So if you click on show files, you should see all the files we had in our project.

182
00:14:55,180 --> 00:15:00,100
No, the free plan of Ripple does not have the private feature.

183
00:15:00,340 --> 00:15:02,170
So your reports are public.

184
00:15:04,200 --> 00:15:08,460
And if you press the button, the rebels should run, so the cold should run.

185
00:15:09,730 --> 00:15:16,000
And lastly, if you want to collaborate with others, you can use this invite button and either provide

186
00:15:16,000 --> 00:15:22,990
an email to someone you know or a username, a reference username available gets an invitation and then

187
00:15:22,990 --> 00:15:25,810
you can collaborate in a raffle, for example.

188
00:15:25,930 --> 00:15:28,930
You can start threads and comments here.

189
00:15:31,250 --> 00:15:41,690
This number is integer press, and that will show as a comment from your port, and that's completes

190
00:15:41,690 --> 00:15:45,260
this rebel tutorial to try to make the best of it.

191
00:15:45,350 --> 00:15:46,280
Thank you for following.

192
00:15:46,370 --> 00:15:47,540
I'll talk to you in the next video.

