Created by Jordane Gengo (Titus)
Forked by pibouill
Forked by pibouill
Visualize 42 peer evaluations as an interactive network graph.
- Interactive Graph: Click nodes/links to view detailed information
- Info Panel: Shows student stats, cluster, evaluation dates
- Multiple Views: All data, Critical evaluations, Clusters
- Search: Find students by login
- Filter: Show only high-value evaluations
- Date Support: First/last evaluation dates
- 42 Intra API credentials
- Python 3.8+
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtCopy and configure your API credentials:
cp config.sample.yml config.yml
# Edit config.yml with your 42 API client/secretNote: config.yml is gitignored - your credentials are safe.
- Go to 42 Intra OAuth Applications
- Create a new application
- Set redirect URI to
http://localhost - Copy the UID and secret to config.yml
# Use dates from config.yml (default)
python pull.py
# Specific date range
python pull.py --from 2025-09-01 --to 2026-01-15
# By cohort start date
python pull.py --cohort 2025-09-01
# Generate sample data (no API needed)
python pull.py --sample
# Force refresh (ignore cache)
python pull.py --force
# or
python pull.py -fcd web
python3 -m http.server 8000Open http://localhost:8000 in your browser.
index.html- All evaluation datacritical.html- High-value evaluations (value > 5)clusters.html- View by cluster
- Click on node: Opens info panel with student details
- Click on link: Shows evaluation details
- Click outside: Closes info panel
- Drag nodes: Reposition
- Scroll/pan: Zoom and navigate
- Search box: Find by login
Click any node or link to see:
- Login and cluster
- Evaluations given/received
- Total connections
- First/last evaluation dates
- Link to 42 Intra profile
| Option | Description |
|---|---|
--from |
Start date (YYYY-MM-DD) |
--to |
End date (YYYY-MM-DD) |
--cohort |
Fetch users who started on date |
--sample |
Generate sample data |
--force, -f |
Force refresh (ignore cache) |
--campus |
Campus ID (default: 56) |
--cursus |
Cursus ID (default: 21) |
The generated data.json includes:
{
"nodes": [{"id": "login", "group": 1}],
"links": [
{"source": "user1", "target": "user2", "value": 3, "first_eval": "2025-09-01", "last_eval": "2025-12-15"}
]
}- Cluster Detection and Visualization
- Interactive Info Panel ✓ (Done)
- Time-Based Filtering
- Heatmap Overlay
- Export Graph as Image
