Setting up the Jupyter Notebook and Conda Environment


Creating a Conda Environment

Whether you are running on the AWS, Azure, or Google GPU cloud compute or just running locally, this tutorial will run the same across all platforms. This is due to the beauty of the conda environments running on Python Anaconda. Anaconda will detect what platform you are running on and download the correct binaries for any Python package for that platform. If you are running the AWS Deep Learning AMI then anaconda and jupyter notebook are already installed so you can skip to activating your conda environment and starting up your Jupyter notebook. If you do not have these packages installed perform the following. Download anaconda by first going to https://www.anaconda.com/download/#linux.

Right click the Download button for the version of python you are using and select "Copy link address". Then you can use wget in your terminal to download the link using wget. This will look like:

wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh

Next, run the downloaded script:

bash Anaconda-latest-Linux-x86_64.sh

When install go ahead and check its installation:

conda info

You should expect to see information pertaining to version, root directory, etc. Now we can set up an environment to work in.

conda create --name deeplearning python=3.6 keras numpy jupyter tensorflow-gpu

Now activate the environment:

On Linux/Mac: source activate deeplearning
On Windows: activate deeplearning

Starting the Jupyter Notebook

Now we can start jupyter notebook. This will be different depending whether you are running on the cloud or locally.

If you are running locally this is straight forward. Type jupyter notebook into terminal:

jupyter notebook


Next:

Transfer Learning