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