| layout | page |
|---|---|
| title | Setup |
| permalink | /setup/ |
We will be using Jupyter notebook for this workshop. We install the Anaconda navigator. Anaconda is an open source distribution, which provides the easiest way to code in python, especially for data science.
{% include install_instructions/virtual_lab.html %} {% include install_instructions/editor.html %}
Please download the following files to particpate in the workshop:
data file
script file
{% comment %}
For Windows Users:
- Go to the following link: https://www.anaconda.com/products/individual
- Click on the download button and wait for the .EXE file to be downloaded.
- Double click on the dowloaded file to launch the installer.
- Click Next.
- Read the Licensing agreement and click "I agree".
- Select "Just me" and click "Next"
- Select a destination folder to install Anaconda and click the Next button.
- Uncheck the add Anaconda to your PATH environment variable and check the register Anaconda as your default Python. Click Install
- Click Next
- Click Next. There is an option to install Pycharm. However, we do not need this tool for this workshop.
- After a successful installation you will see the “Thanks for installing Anaconda” dialog box
For Mac Users:
- Download the macos installer by going to the following link https://www.anaconda.com/products/individual and clock on download
- Open the file my double clicking on it and start the installation.
- Answer the prompts on the screen.
- Installation type, select "Install for me only"
- Click on continue.
- After a successful installation you will see the “Thanks for installing Anaconda” dialog box {% endcomment %}
We can use Anaconda Navigator to access Jupyter and other tools(pyCharm etc) provided in Anaconda.
For Windows Users:
- Click Start
- Search and select Anaconda Navigator from the menu.
- Once the Navigator opens up. Select Jupyter Notebook from the tools available.
- Jupyter will open up on a new tab in the browser.
- Navigate to the required destination.
- Click on new - > Notebook
- The script file opens up.
For Mac Users:
- Click Launchpad and select Anaconda Navigator. Or, use Cmd+Space to open Spotlight Search and type “Navigator” to open the program.
- Once the Navigator opens up. Select Jupyter Notebook from the tools available.
- Jupyter will open up on a new tab in the browser.
- Navigate to the required destination.
- Click on new - > Notebook
- The script file opens up.
While we are using jupyter notebook for the purpose of this workshop, we can use any text editor to write our program and run it using terminal/command prompt. To do so-
- Open the command prompt/terminal and type pip install python3
- Once the installation is complete, open any editor and type you code in it. Make sure you save the file with a .py extension.
- Go to the command prompt/terminal and navigate to the filder where the file is saved.
- type python3 "name of the file".py
{: .callout}
The data set being used in this workshop is "auto-mpg.csv". It contains information regarding varios parts. It was collected by Carnegie Mello University. We will perform data pre-processing on this workshop. Additionally, as homework, you will be required to perform visualization on this dataset.