Repository navigation
Expand file tree
/
Copy pathrun.sh
More file actions
53 lines (45 loc) · 1.99 KB
/
Copy pathrun.sh
File metadata and controls
53 lines (45 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
#================================================================================
# Student Performance Analytics Dashboard - Launcher
# GitHub: https://github.com/issu321/Data-Visualize-Py.git
# Kali Linux / Debian / Ubuntu Compatible
#================================================================================
set -e
RED='\033[0;31m'
GREEN='\033[0;32m'
CYAN='\033[0;36m'
YELLOW='\033[1;33m'
MAGENTA='\033[0;35m'
NC='\033[0m'
echo -e "${MAGENTA}"
echo " ╔══════════════════════════════════════════════════════════════╗"
echo " ║ ║"
echo " ║ 📊 STUDENT PERFORMANCE ANALYTICS DASHBOARD ║"
echo " ║ ║"
echo " ║ GitHub: issu321 ║"
echo " ║ github.com/issu321/Data-Visualize-Py ║"
echo " ║ ║"
echo " ║ [LAUNCHING...] ║"
echo " ╚══════════════════════════════════════════════════════════════╝"
echo -e "${NC}"
# Detect Python
PYTHON_CMD="python3"
if command -v python3 &> /dev/null; then
PY_VERSION=$(python3 --version 2>&1 | awk '{print $2}')
echo -e "${GREEN}[+] Python $PY_VERSION detected${NC}"
else
echo -e "${RED}[!] Python not found!${NC}"
exit 1
fi
# Check src exists
if [ ! -d "src" ]; then
echo -e "${RED}[!] src/ directory not found!${NC}"
echo -e "${YELLOW}[*] Make sure you're in the project root${NC}"
exit 1
fi
# Create output dir
mkdir -p output
# Launch
echo -e "${CYAN}[*] Launching Analytics Dashboard...${NC}"
echo ""
$PYTHON_CMD src/student_analytics.py