-: Hi everyone and welcome back.
In the next lecture, you're going to be working
on the Grid World demonstration and as an update
this lecture is to help set you up with
an environment to run that without any issues
and this is because the original Grid World program
or files, were released with Python 2.7.
As we know, Python now has Python 3 available
that most of us are using.
But these files were originally built
for more of a pure Python purpose.
You don't really need to set up or install anything.
So the best option, barring any customizations
or changes to the algorithm
and the grid world visualization.
For our demonstration purposes
we can set up a new environment.
It's really simple and this is also
something really powerful to use
when you're working on any projects because you can set
up multiple virtual environments within Anaconda
and we're gonna go through the steps
so that you can set it up for this demonstration.
If you want to run, again in the next video
you will see the demonstration.
You don't need to set this environment up
because it's just for Grid World,
but for those of you who want to follow along
and want to run the commands
I would highly recommend this approach.
In order to do so, please launch the Anaconda Navigator.
Once you have the navigator up
you're gonna go to the environments command.
When you have the environment set up
you could find the create option, click on create
and here you're gonna name your environment.
So we can use let's say, grid test.
Once you have the name, you can select the Python version.
Also, quickly as a reminder
you could have any Anaconda version.
If you downloaded the most recent Anaconda
that's absolutely fine.
You can set up versions within it.
As you'll see, we have 2.7 the version that we wanna work
with in this environment.
This is a separate from your root environment.
You can see as an example, I have quite a few environments
set up for any projects or applications that I'm working on.
It's nice to have because you can have the version
and specific library versions contained to that environment.
It's highly recommended.
So what we can set up is 2.7.
Once we have 2.7, we have our grid test.
Let's do grid test one because I do think I already
had a grid test as I do.
So let's do grid world test.
As we have grid world test, we're gonna click on create.
Let that create for a moment.
While that's creating, you can have two options.
You can launch an environment from here
and if you want to install, let's say Spider or Jupiter
or anything like that, once you go back to the home
once it loads, you can select the environment.
So we want grid world test, and then you
can install the applications on that.
We don't need that right now because we're gonna be
working straight from the terminal.
As you'll see in the next lecture.
If you go to your environment
you can click on the grid world test,
click on the green arrow and select open terminal.
That is one method that you can do.
We're gonna open the terminal here in a second.
Just give my computer one moment since it's still building
and we have it open and you'll see that it's activated.
Another option is to bring up a terminal.
Let me launch this for Mac and Windows,
or excuse me for Mac and Linux.
You can use the source activate command
and then you're gonna use the name of your environment.
So we're using Grid World test
and this would activate that environment.
If you're on Windows, you do not need the source command
you would just use the activate and the environment name.
So we could run this and as you'll see,
we're in the environment.
Next, you can find the files for the next lecture
attached to this lecture and the next lecture
I'm going to grab the files and bring 'em into this folder.
I'm gonna CD to change the directory
to the location of those files
and I'm gonna drag and drop them into this folder.
Give one second let me just bring this over
CD into this and I can always check the files.
There we go I'm gonna clear this.
So we have the files cleared
and we can see into the terminal.
Now, this is only for demonstration purpose
just to demonstrate that it is running and executing.
In the next lecture Kiel is going to explain
all the details related
to the grid world visualization.
But in order to run it and test it
I just want to issue the command that
we were working with in the next lecture
and that is the Python grid world.high K10 A flag
and the Q flag actually don't need the flag there
and the Q, I just wanna verify
that this runs so we can run a test and it is running.
So I'm gonna exit out I'm gonna clear this
because we only want to make sure
that the files are executing.
In the next lecture you're going to
see the demonstration of Grid world.pie
and you'll see how what the flags mean
Kiel is going to go through
and explain the grid world pie, set up an information.
This is to just set up your environment for Python 2.7
and you can do this for as many environments
or other environments that you're working with.
It's just extremely helpful.
All right, hope you found this helpful
and enjoy the great world visualization coming up.