This repository contains the main resources for the Computer Programming 101 course using Python at ISPA-IU.
The course is based on jupyter notebooks and divided into 2 main modules called:
-
python-intro
Introduction to Python variables, operators, boolean logic, data types, flow control, loops, and functions. With extra notebook containing classes, objects, and OOP basics. -
python-data-science Introduction to basic Python libraries for data science, file IO, numpy, matplotlib and data visualization, pandas and data frames. With extra notebooks include a basic implementation of Conway's game of life, linear algebra and machine learning using scikit-learn, network analysys using networkx lib, regular expressions, signal processing using SciPy, text sentiment analysis and word clouds.
The course is designed to be self-paced and the notebooks are meant to be run either in vscode or in jupyter-lab.
To run the files for this course you need some software installed on your machine.
Make sure you have vscode, git, and uv installed on your machine. You can download them from here:
These instructions should work for all (win, mac, linux) operating systems.
Git is a free and open source distributed version control system that allows you to track changes in code, collaborate with others, and maintain different versions of a project.
More info on git
Visual Studio Code is a free open source code editor developed by Microsoft.
More info on vscode
uv is a fast Python package manager and environment tool.
More info on uv
- Download git and follow the installer instructions for your platform.
- Download vscode and follow the instructions for your platform.
- Install uv for your platform.
Open VS Code, go to the Extensions menu, and install:
After installing the required software, follow these steps to set up your environment:
-
Open your terminal application (Anaconda Prompt, Terminal, PowerShell, etc.).
-
Change directory to where you want to store the course files (e.g., Documents):
cd ~/Documents
On Windows, you may use:
cd %USERPROFILE%\Documents
-
Clone the repository:
git clone https://github.com/nbonacchi/python-programming.git cd python-programming -
Install Python 3.13 using uv and create a virtual environment:
uv python install 3.13 uv venv
-
Activate the virtual environment:
-
On macOS/Linux:
source .venv/bin/activate -
On Windows:
.venv\Scripts\activate
-
-
Install the required Python packages:
uv pip install -r requirements.txt
The easiest way to launch the notebooks is to use vscode.
- Open vscode and click on the file menu and then open folder.
- Select the folder with the course material (python-programming).
- Click on the view menu and then command palette.
- Type python: select interpreter and select the environment you created (the
.venvfolder).
Alternatively, you can run the notebooks from the command line.
To launch the notebooks, activate your virtual environment and run:
# On macOS/Linux
source .venv/bin/activate
# On Windows
.venv\Scripts\activate
jupyter-labThis course was adapted from the Digital Skills and Training initiative of the University of Edimburgh Information Services. The original files for the course can be found here and here.