Anaconda

What is Anaconda ?


Anaconda is a python and R distribution. It aims to provide everything you need (python wise) for data science "out of the box". It includes:

In the subsequent posts, you will see each one of the above mentioned scientific packages explained in great detail with extensive usage throught the ML course.

Installation details


Step 1: Install Anaconda (Python 3.6 version)

Download Link - https://www.anaconda.com/download/

Step 2: Verify the conda installation

Open Anaconda Command Prompt

To Verify the installation, type

conda --version
Conda version

To update conda, type

conda update conda

TIP: It's recommend that you always keep conda updated to the latest version.

Step 3: Create a vitual environment (Optional)

Conda allows you to to create separate environments containing files, packages and their dependencies that will not interact with other environments.
When you begin using conda, you already have a default environment named base. You don’t want to put programs into your base environment, though. Create separate environments to keep your programs isolated from each other.

To find the list of current environments, type

conda info --envs
Conda environemnt list

To create an environment named ML, type

conda create --name ML
Create a seperate environment named ML

To activate the ML environment, type

Create a seperate environment named ML

The activated environment is also displayed in front of the prompt in paranthesis or brackets as show above.

To deactivate the ML environment, type

Step 4: Different programming IDEs

Step 4.1: Command Prompt or Terminal

Type python in the command window. It will show the current version of python and a prompt >>> where the python code goes

Start python in command window

Step 4.2: Sypder

Type spyder in the command window. The command will launch the spyder IDE environment. It has some cool features such as Ipython console which you can explore on your own.

Spyder IDE

Step 4.3: Jupyter Notebook

Type jupyter-notebook in the command window. The command will launch the jupyter-notebook in default web browser. It has some cool features and we will be using it as our main development environment.

Launch Jupyter Notebook

« Previous: ML Introduction Next: Jupyter Notebook »