How to Install Anaconda & Run Jupyter Notebook

  • Post author:
  • Post category:Python
  • Post last modified:November 27, 2022

In the scientific community Anaconda and Jupyter Notebook is the most used distribution and tool respectively to run Python and R programming hence in this article I will cover step-by-step instructions of how to install anaconda distribution, set up Jupyter Notebook, and run some examples.

Anaconda is the most used distribution platform for python & R programming languages in the data science & machine learning community as it simplifies the installation of packages like pandas, NumPy, SciPy, and many more. Conda is the package manager that the Anaconda distribution is built upon. It is a package manager that is both cross-platform and language agnostic. We can use conda to install any third-party packages.

Jupyter Notebook is an interactive web UI environment to create notebook documents for python, R languages. Jupyter Notebook documents take statements similar to REPL additionally it also provides code completion, plots, and rich media.

In case you wanted to run pandas, use How to Run Pandas with Anaconda & Jupyter notebook

Instructions To Install Anaconda and Run Jupyter Notebook

1. Download & Install Anaconda Distribution

Follow the below step-by-step instructions to install Anaconda distribution.

1.1 Download Anaconda Distribution

Go to https://anaconda.com/ and select Anaconda Individual Edition to download the latest version of Anaconda. This downloads the .exe file to the windows download folder.

install anaconda jupyter natebook

1.2 Install Anaconda

By double-clicking the .exe file starts the Anaconda installation. Follow the below screen shot’s and complete the installation

install anaconda welcome
install anaconda for all users
Custom anaconda install location
Complete Anaconda installation

This finishes the installation of Anaconda distribution, now let’s see how to create an environment and install Jupyter Notebook.

2. Create Anaconda Environment from Navigator

A conda environment is a directory that contains a specific collection of conda packages that you have installed. For example, you may have one environment with NumPy 1.7 and its dependencies, and another environment with NumPy 1.6 for legacy testing.

https://conda.io/docs/using/envs.html

2.1 Open Anaconda Navigator

Open Anaconda Navigator from windows start or by searching it. Anaconda Navigator is a UI application where you can control the Anaconda packages, environment e.t.c

install anaconda jupyter notebook

2.2 Create an Environment to Run Jupyter Notebook

This is optional but recommended to create an environment before you proceed. This gives complete segregation of different package installs for different projects you would be working on. If you already have an environment, you can use it too.

install anaconda jupyter notebook

select + Create icon at the bottom of the screen to create an Anaconda environment.

anaconda create environment jupyter

3. Install and Run Jupyter Notebook

Once you create the anaconda environment, go back to the Home page on Anaconda Navigator and install Jupyter Notebook from an application on the right panel.

install anaconda jupyter notebook

It will take a few seconds to install Jupyter to your environment, once the install completes, you can open Jupyter from the same screen or by accessing Anaconda Navigator -> Environments -> your environment (mine pandas-tutorial) -> select Open With Jupyter Notebook.

Install jupyter notebook

This opens up Jupyter Notebook in the default browser.

Open Jupyter Notebook

Now select New -> PythonX and enter the below lines and select Run. On Jupyter, each cell is a statement, so you can run each cell independently when there are no dependencies on previous cells.

Run Python From Jupyter Notebook

This completes installing Anaconda and running Jupyter Notebook. I have tried my best to layout step-by-step instructions, In case I miss any or If you have any issues installing, please comment below. Your comments might help others.

Happy Learning !!

NNK

SparkByExamples.com is a Big Data and Spark examples community page, all examples are simple and easy to understand and well tested in our development environment Read more ..

Leave a Reply

This Post Has 3 Comments

  1. Bhavani RanjithKumar

    Thank you so much its really worked πŸ‘πŸΌπŸŒˆ

  2. Anonymous

    Thank you so much its worked πŸ‘πŸΌ

  3. Irene

    This is a very good and clear guide.
    I managed to setup my environment successfully.
    Thank you

You are currently viewing How to Install Anaconda & Run Jupyter Notebook