How to install Anaconda and Jupyter Notebook

Let’s first understand what are Anaconda and Jupyter Notebook.

What is Anaconda

Anaconda is a distribution software which is used to install Python. A distribution software is a bundle of many packages. In Anaconda distribution, Python and many packages come pre-loaded.

Anaconda has the following key components:

  1. Conda – package manager(a program to update and install various packages)
  2. Python language
  3. Various packages (Eg. pandas, numpy)
  4. Integrated Development Environment(IDE) – To write and execute the code(e.g. Jupyter, Spyder)

 

What is Jupyter Notebook

Jupyter notebook is the most used Python IDE by Data Scientists to code in Python. This is a browser-based IDE, that means you don’t need to open it in some application. Once you start a jupyter server(it’s a program which we will explain later), a notebook will open in your internet browser. So, all we need to do is install Anaconda and then start the jupyter server. Jupyter notebook looks like this in the browser:

Linux & Mac come with Python already installed nowadays. To know if Python is already installed in your system, go to command line/Terminal and type python and hit enter. If you see some version of Python, it means python is already installed in your system. However, we strongly recommend that you install Anaconda and use its Python for this course.

Anaconda installation for different Operating Systems

 

Windows
  1. First of all, download Anaconda from the official page and install the latest version(Python 3.* )here
  2. Now, install anaconda following the steps mentioned: Here
  3. After successful installation, open command line(command prompt) by typing cmd in Search/Run in your windows.
  4. Type ‘Jupyter Notebook’ in the command line which will open Jupyter Notebook in your browser with URL ‘http://localhost:8888’. 8888 is port number. If you want to start the server on some other port, then type ‘jupyter notebook –port 9999

We will illustrate the windows installation process using the screenshots below.

Mac
  1. First of all, download Anaconda from the official page and install the latest version(Python 3.* )here
  2. Now, install anaconda following the steps mentioned: Here
  3. After successful installation, open command line(Terminal)
  4. Type ‘Jupyter Notebook’ in the command line which will open Jupyter Notebook in your browser with URL ‘http://localhost:8888’. 8888 is port number. If you want to start the server on some other port, then type ‘jupyter notebook –port 9999
Linux
  1. First of all, download Anaconda from the official page and install the latest version(Python 3.* )here
  2. Now, install anaconda following the steps mentioned: Here
  3. After successful installation, open command line(Terminal)
  4. Type ‘Jupyter Notebook’ in the command line which will open Jupyter Notebook in your browser with URL ‘http://localhost:8888’. 8888 is port number. If you want to start the server on some other port, then type ‘jupyter notebook –port 9999

 

Anaconda installation process on Windows

 

Step 1

Open your web browser and go to https://www.anaconda.com/download. Click on the Windows icon.

Step 2

Next page will show you two Python options, as below. There are two Python version – Python 2 & Python 3. There is no much difference in terms of efficiency or the tasks you can get done using any of them. But, for this course, we will be using Python 3. At the time of creating this chapter, Python 3.6 is the latest version.

Now, choose the 32 or 64-bit option as below. Most of the computers are 64-bit these days. You can check your System type by right clicking on This PC or My Computer.

Step 3

Anaconda will start downloading on your computer. As it’s a big file, it will take some time to download depending upon your internet speed.

Step 4

Now, double click on the downloaded Anaconda file and Click on Next on the popped up window.

Step 5

Click on I Agree

Step 6

Let just me (Recommended) option remain selected and click on Next.

Step 7

Now, it will ask for the location to install the Anaconda. Let the default location be there and click on Next.

Step 8

Select Register Anaconda as my default Python 3.6 and click on Install

Step 9

The installation will start.

Step 10

This will take some time to complete

Step 11

Next button will be enabled once it’s complete. Click on Next button.

Step 12

This window is asking if you want to install Microsoft Visual Studio Code editor to write code. We will not be using this for writing code. Click on Skip button.

Step 13

Uncheck both checked options and click on Finish button, and your Anaconda installation is complete.

Step 14

Now, let’s access Anaconda Prompt. Go to Search/Run and type Anaconda Prompt and hit enter.

Step 15

A black window like below will open. This is Anaconda Prompt.

Step 16

We will now start jupyter notebook from anaconda prompt. Just type jupyter notebook and hit enter.

Step 17

Jupyter notebook will open in your web browser automatically.

CONGRATULATIONS 🙂 You are doing great. We are excited. Let’s come to coding straight without wasting any more time.

Share the post to spread the love

About the author

Dr. PyPro

Dr. PyPro

Teaching is my passion and I strongly believe that life is a beautiful journey and learning should never stop. Happy Learning :)

View all posts

Leave a Reply

Your e-mail address will not be published. Required fields are marked *