Closes #18 Closes #19 Closes #20 Closes #21 Closes #22 Closes #23 Closes #24 Refs #25 Task: MIL-003#1
34 lines
867 B
Markdown
34 lines
867 B
Markdown
**English** · [Dansk](Getting-Started-da) · [Bahasa Malaysia](Getting-Started-ms)
|
|
|
|
# Getting started
|
|
|
|
Requirements: Python 3.13 or newer. Runtime dependencies: `pandas` and `matplotlib`.
|
|
|
|
Create and use a local `.venv` (Windows PowerShell):
|
|
|
|
```powershell
|
|
python -m venv .venv
|
|
.venv\Scripts\Activate.ps1
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -e ".[dev]"
|
|
```
|
|
|
|
Linux and macOS:
|
|
|
|
```bash
|
|
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:
|
|
|
|
```bash
|
|
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.
|