• Post author:
  • Post category:Python
  • Post last modified:May 9, 2024
  • Reading time:14 mins read
You are currently viewing How to Install Anaconda & Run Jupyter Notebook

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.

Advertisements

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 !!

Frequently Asked Questions on Install Anaconda Jupyter Notebook

What is Anaconda?

Anaconda is a free, open-source platform that simplifies package management and deployment of Python and other programming languages for data science, machine learning, and scientific computing.

Why should I use Anaconda?

Anaconda provides a convenient way to manage Python environments, packages, and dependencies, making it easy to work with various data science libraries and tools. It also includes Jupyter Notebook, which is a popular web-based interactive computing environment.

How do I download Anaconda?

Visit the Anaconda website (https://www.anaconda.com/products/distribution), select the appropriate version for your operating system, and download the installer.

Can I install Anaconda on Windows, macOS, and Linux?

Anaconda supports Windows, macOS, and Linux. Download the installer for your specific operating system from the Anaconda website.

How do I run Jupyter Notebook after installing Anaconda?

Open a terminal or command prompt and type jupyter notebook. This will start the Jupyter Notebook server and open the dashboard in your web browser.

Can I run Jupyter Notebook without an internet connection?

Jupyter Notebook runs locally on your machine, and you can use it without an internet connection. However, some features like installing additional packages may require internet access.

How do I shut down Jupyter Notebook?

Close the browser tab or window where Jupyter Notebook is running, and go back to the terminal where you started it. Follow the prompts to shut down the notebook.

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