CSCI946 Lab 1 Instructions (For WindowsOS) - 2024
CSCI946 Lab 1 Instructions (For WindowsOS) - 2024
Table of Contents
Introduction ..................................................................................................................... 2
Task 1: Install Python........................................................................................................ 3
Task 2: Install Anaconda ................................................................................................... 4
Task 3: Install Spyder ........................................................................................................ 5
Task 4: Exercise with Python ............................................................................................. 7
Task 5: Install Jupyter Notebook/Lab (Optional)................................................................ 9
Python is often used in Big Data Analytics though more powerful tools exist (i.e., Hadoop).
We use Python so that you can run lab tasks and exercises and do assignments on your home
computer. All tools we will use are available for a broad spectrum of OSs and are free to use!
You will use Python for CSCI446/946 labs, exercises, and assignments.
Please complete Task 1, Task 2, Task 3, Task 4, and Task 5 (which is optional) below.
Note that this instruction is based on Windows OS. Adapt it accordingly to other
operating systems.
Step2, find the downloaded file “python-3.12.4-amd64.exe” from your browser’s Downloads
Location (default: Downloads folder) and run installation: agree with default settings, then
“Close” to finish.
Once completed, we can launch Spyder from Anaconda every time by selecting the spyder
environment first from Anaconda > Environments.
Step4, install Python packages. There are many packages and toolboxes available for Python.
We can install a particular package when we need it. There are two ways to install packages:
Anaconda -> Environments, or cmd (Windows command console) terminal command. Take
the package pandas for example:
1. Anaconda > Environments > spyder
Use either way to install 3 packages: pandas, numpy, sklearn into spyder
environment.
Step 5, change default dictionary to Downloads folder in Spyder: menu-bar > Tools >
PYTHONPATH manager > Add path > select Downloads folder > click Select Folder > OK,
then menu-bar > Consoles > Restart kernel, then menu-bar > File > New file… .
import pandas as pd
import matplotlib.pyplot as plt
In the jupyter notebook, run a cell a time and create a new cell after running the
previous cell.
It uses a Code cell to run python command.
Please apply codes in Task 7 in a jupyter notebook. The formatted notebook is illustrated as
below.