1
Getting Started
Tirsvad edited this page 2026-11-12 01:50:35 +01:00

English · Dansk · Bahasa Malaysia

Getting started

Requirements: Python 3.13 or newer. Runtime dependencies: pandas and matplotlib.

Create and use a local .venv (Windows PowerShell):

python -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Linux and macOS:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Run the analysis, the tests and the notebook:

python -m lego_analysis
python -m pytest
jupyter lab notebooks/Lego_Analysis_for_Course.ipynb

What you gain: a repeatable set-up (a virtual environment per project), a package you install in editable mode, and tests that prove each answer.