Okay, so it's time to set up your computer and install the necessary software for this course. 1
In this lesson I will show you how to install Python and configure your local environment so that way 2
we don't have to rely on the trial environment on jupyter.org. 3
I will show you how to install Python Anaconda on Mac OS. 4
If you're running a Windows machine check out the other setup video instead. 5
But before we beginm let me explain what Python Anaconda is and why we're downloading it. 6
Anaconda is a Python distribution. 7
And this means that Anaconda aims to provide everything you need for data science in one place. 8
It's essentially a bundle of software and code that makes it easy for getting set up for data science 9
and machine learning. 10
For example, the Anaconda bundle already includes the Jupyter notebook, so you don't have to separately 11
download it and install it and it also includes tons and tons of Python packages and libraries that 12
we'll be using in this course. 13
What do I mean by libraries? 14
Well, remember how we wrote "import pandas" or "import matplotlib" or "import sklearn" in our first project? 15
Usually you'd have to download all these packages one by one before you can use them in your project. 16
But by downloading Anaconda we're going to be getting all these packages in one go; that way we don't 17
have to worry about setup and configuration. 18
Later on in the course, one word of warning though. 19
If you Google the word Anaconda, you're probably not gonna get what you're looking for. 20
You'll want to search "anaconda python" to find the continuum.io website or alternatively click on 21
the link in the lessons resources to be directed directly to the "Download" page. 22
The thing about Python is it also comes in two flavors. 23
We're going to go with the newer version of Python - 24
Python 3. So while Anaconda's downloading, this is a good time to go for a coffee or tea. After the download 25
completes you can start the installation. 26
We're going to be presented with one of those standards set up wizards, so we're gonna click "Next". 27
Then we're gonna agree to the license agreement, we're probably signing away our first born child at this point. 28
But on the next parts of the wizard I'm just gonna go with the recommended options so I'm gonna say 29
install for just myself. 30
And for the destination folder I'm also going to stick with the default. Now, my computer actually isn't 31
as fast as it appears to be because I'm speeding up the video here, but this installation process actually 32
takes a little while too. 33
So just be patient and, after the installer finishes, I'm just gonna click "Close" and "Move to Trash" and 34
that's it. 35
Now it's time to fire up Anaconda and the Jupyter notebook just to see if everything's working. Click 36
on the little magnifying glass in the top right corner to bring up the Spotlight search. 37
Alternatively, you can use the Command+Space keyboard shortcut to bring up the same thing, then type terminal 38
and hit Enter. 39
Now your terminal might be styled a little differently from mine. 40
I've made my text a little bigger and I've used the the black background so that's something you can 41
set under the preferences. So if it's the first time you're using terminal you probably have it set to 42
the Basic theme instead of "Homebrew", which is what I've got, but hopefully that will make it a little bit 43
easier to read what I'm about to type. And in this window type "python --version" and here 44
you should see the version of Python that you've installed as well as the version of Anaconda and, as 45
we've mentioned before, 46
make sure the version of Python is 3.6 or higher. Next, 47
let me show you how to start up your own Jupyter notebook. 48
You can do that by simply typing 49
"jupyter notebook" 50
and hit "Enter". 51
Now give it a minute. 52
You should see Jupyter firing up in your browser, 53
showing you the folder structure in your home directory. 54
And when you click on "New", you should be able to start a new Python 3 notebook so congratulations on 55
getting that working. But starting up is only part of the equation. 56
We also have to be able to shut this down properly, and to shut down the open notebook, go to a File > Close and 57
Halt and you can log out and close your browser window. 58
But the important part is terminating the Jupyter notebook from the terminal, and you can do this with 59
a keyboard shortcut. 60
You can see here in the instructions, it says "Use Control-C to stop this server and shut down all kernels 61
(twice to skip confirmation).". So on your keyboard press Control+C twice; you should then see the messages 62
"Shutting down kernels" and that's how you close out of Jupyter completely. 63
Finally, let me show you all the components that were installed alongside with Anaconda, and to do that, 64
let me show you the Anaconda Navigator. 65
So go to your launcher and find the Anaconda Navigator. 66
Alternatively, search for Anaconda Navigator in your Spotlight after it finishes loading. 67
You should see a window like this from here. 68
We can launch the Jupyter notebook or the spyder Python IDE or even RStudio. 69
All right. 70
So congratulations on getting set up. 71
If you have any problems or had any issues ask in the Q&A section for this lesson. 72
I'll see you in the next videos.