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
- Download & Install Anaconda Distribution
- Create Anaconda Environment
- Install 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.
1.2 Install Anaconda
By double-clicking the .exe file starts the Anaconda installation. Follow the below screen shot’s and complete the 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
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.
select + Create icon at the bottom of the screen to create an Anaconda environment.
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.
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.
This opens up Jupyter Notebook in the default browser.
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.
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
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.
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.
Visit the Anaconda website (https://www.anaconda.com/products/distribution), select the appropriate version for your operating system, and download the installer.
Anaconda supports Windows, macOS, and Linux. Download the installer for your specific operating system from the Anaconda website.
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.
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.
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.
- How to Install Anaconda on Windows
- Install Anaconda & Run pandas on Jupyter Notebook
- Install Python Pandas on Windows, Linux & Mac
- Install Pandas on Windows Step-by-Step
- Update Jupyter Notebook or Jupyterlab
- Install Jupyter Notebook or Jupyterlab on Mac OS
- JupyterLab Error – JupyterLab application assets not found