Hi, in this video, you will learn how to use the repl IDE. Now, repl is the name of the IDE and
IDE, as you may know, stands for Integrated Development Environment, which is basically a text editor
where you develop your Python programs.
But it's not just an editor.
It has also some extra features which helps you during the development process, and repl has those
features.
The points we will cover in this video are how to navigate the repl directory, then how to create
a new repl and write and run Python codes in that repl, how to install Python packages, how to
create more Python files, or other files in your repl environment.
How to upload files in repl. So those are basic concepts, then we will go to more advanced concepts
such as how to use Git, how to debug your code by using the repl debugger, how to change the settings
of your repl environment, and also you'll learn how to share your repl with other people so they can
see or copy your codes and use the same repl.
And you'll also learn how to collaborate with others in the same repl.
I do recommend it to take notes because you may need these things during the course.
One note, though, if you have your own favorite IDE, feel free to use it.
But I do recommend you to give Revel a try because it does have features which you will not find in
traditional IDEs.
So give it a try.
Let's start with the first point.
The project directory.
So after you sign up, you should be able to create a new folders and new reports.
Basically, what you want to do is create folders to organize your rivals inside folders.
Let's say this would be the introduction folder, so that's created a new introduction folder.
I can go inside that folder and create the new report.
Now, there are several languages that the rebels supports, the one we want to choose is Python.
Then you can give a name to your apple.
I'll just call this introduction script.
And Press on creates Ripple.
Now this introduction script is not the name of the Python file.
It just the name of the Ripple.
And a ripple, as you will see now, is basically a computer which you can access from your browser.
And in this computer, you have files.
So we can start coding right away in this main PUOi file.
As you can see, rebel support, syntax highlighting and also codes introspection on the fly, so you
can see that this is highlighting what arguments we can pass to the print function right when you're
still inside these brackets, the window with shut up when you are typing to run, just press the wrong
button.
And here you see the output.
Now installing packages, Python packages in a raffle, you can install any package that you like.
All you have to do is go to these packages tool here and you should be able to search for packages such
as pandas.
And then be careful what you install here, so we want pandas.
The second one.
Not panders to I don't know what that is.
And Ripple will install that package for you.
And if you see this green window, that means pandas, the library has been installed, you can go ahead
and imported.
Arun.
So we didn't get any errors.
We got this.
Printed out and Panas hasn't been imported since we didn't get those.
You can go back to the first tool to go to your files and you can create more Python files if you like.
Let's say calculate the P Y, let's say X equals 10.
And then from Maine, those p y you can import calculate.
And of course, you can use.
The attributes of calculate, which is X in this case, run.
And you get Helloworld printed out and also 10.
So what happens when you do run is that a rapper will always run the main profile.
So it basically executes the command python main that people why owned the terminal?
In other words, your main script, which is the entry point of your projects, should be made in those
few way.
Besides --, you can also create other type of files that are not directly, for example,
and you can use the editor to add content.
You can also create other extensions, such as Delta 6V.
So there you go.
And you can also organize your projects into different folders, so with that button, you can create
a folder, for example files, and you can drag and drop files into that folder, right?
You can also use these dots to go to the upload file menu and upload a file from your computer to rebel.
Depending on the file, it should take a while until the file uploads.
And if you click the file.
A raffle should be able to play it.
Even though Odin's rely on a rifle to watch movies, we're crossing the line here so you can create
and upload files in Europol next using Get.
If you go to the second menu, you can create a guide to report a repository.
So what is GIDS gets is a version control system.
It helps you manage the versions of your programs.
So if you write a program and you write it up to a point, but then you want to go back to a previous
state of your program.
You can use it for that.
And GitHub, then, is a cloud repository where you upload your programs and that works like a backup
of your program, but also as a collaboration tool so others can get your code from GitHub and use it.
So first, let's explain, gets a bit more how it works on a raffle.
So as you develop your programs, you want to do commits, which are basically records of your state
of your program.
For example, let's say we write the program up to here.
Hi again.
And then you want to do a commit to record this code.
So let's say you want to see ad high again message.
Then you press comets and push.
So what's happened is that now we have two commits.
The first commit was an automatic one.
So this year?
This one was manual from us, so only the first committee is automatic, but then the other ones, it's
up to you.
So for example, let's say you want to keep going.
That's maybe a function Fu X Return X.
You want to register this feature now.
So you see again commits that function to return X, for example, commit and push.
And so now we have three commits.
The benefits of getting out is that if you don't want this function anymore, so you want to go to the
previous state of the program.
Of course, you could deliver this function or press control.
That's to undo it.
But imagine when you enter codes here to answer some codes here between the lines, so it becomes complex.
In that case, the best way to do is to go to the previous commits.
So to the committee where we said I again message at high again, message and press on reverse.
It's here, confirm and triple will delete that function.
And that happens using it.
No GitHub.
If you scroll up, you'll see these bots and connect to GitHub.
And you should have a GitHub account, you can create one on GitHub that's.
Com.
Once you create that account, you can log in here and then you can create two repositories for your
GitHub remote's cloud account.
So, for example, let's say this is introduction script.
You can choose any name you want.
You can keep its public or private if you want everyone to see your report on the internet.
You can press on public, otherwise keep it private.
Create GitHub repository.
And then if you go to GitHub dot com.
So this is my getup.
And.
I have a GitHub account here, and you see that this is a repository we just created, so it's forty
one seconds ago.
44.
So if you click on there, you'll see here we have all the files that we had on Ripple.
So they are synchronized here.
We also have some extra files which are created by default, such as this configuration files, but
we don't need them, so let them see their.
And again, you can keep adding codes.
Print, bye bye.
At by message as a committed message and press on commit and push.
And that should synchronize now with your GitHub repository as well.
So let's check that if you refresh.
You see now that the main that profile has this comet message at by message.
So that's the lost comet for that particular file.
You don't see the same message with the other files because they were not changed in that particular
comet.
The last comet calculates the P Y was changed was in the first comet in the initial automatic comet.
So if you click on Main that people, I know you will see the change that was applied to vets the last
particular comet.
That one, right?
So that was a crash course on Gates and Gates hub as well.
Now the debugger, which is a very nice feature, very minimalistic but very powerful of good.
Let's suppose we have this called X equals to ten and to Y equals two x times to Z.
You can see why plus 20 percent z run.
So when I press this run button, I'm running the script, have entire scripts.
I'm not using any debugger.
But if you want to know the value of Y, for example, and you don't want to enter a print function
here just to see the value of Y, what you can do is use the debugger.
What you do is you set a break points, you click somewhere in this area here next to the line, where
do you want the script execution to stop to hold?
So I got two break points.
Now I want only one.
So to remove that first one, I can click there and it disappears.
So make sure that the breakpoint is in line.
Three.
So this one here you also see the three in here and then press this button here next to the debugger
tool.
And you should see some information down here, so we see the value of X is 10 and the value of Y is
twenty.
We don't see the value of assets because we said the break points here.
So this line is not executed where the breakpoint is.
So that's about the debugger is very helpful when you have problems with your codes.
So if you we were not getting the expected value for that, we would want to check the value of its
dependence.
So this is being calculated from Y and X.
The debugger is a good way to check that and then you can stop the debugger in here.
Remove the checkpoints and then you can run the codes as usual.
Now in this council, you can also writes codes interactively, so this works as an interactive python
shell as well.
This shell is the Linux terminal.
You don't usually need it, but when we need it, I'll tell you what we can do with this in the future
programs that will be built in the course, then we have the settings.
So these are self-explanatory.
So if you want to change something, you can do so and see how ripple changes to share your ripple.
You can just copy this code.
And give it to anyone you want, and they should be able to open that URL and should see something like
this.
So if you click on show files, you should see all the files we had in our project.
No, the free plan of Ripple does not have the private feature.
So your reports are public.
And if you press the button, the rebels should run, so the cold should run.
And lastly, if you want to collaborate with others, you can use this invite button and either provide
an email to someone you know or a username, a reference username available gets an invitation and then
you can collaborate in a raffle, for example.
You can start threads and comments here.
This number is integer press, and that will show as a comment from your port, and that's completes
this rebel tutorial to try to make the best of it.
Thank you for following.
I'll talk to you in the next video.