-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd.sh
More file actions
49 lines (43 loc) · 815 Bytes
/
Copy pathcmd.sh
File metadata and controls
49 lines (43 loc) · 815 Bytes
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
#!/bin/bash
VENV_DIR="venv"
setup() {
printer "🔨 Setting up the app"
python -m venv $VENV_DIR
source $VENV_DIR/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python -m ipykernel install --user --name $VENV_DIR --display-name $VENV_DIR
handler
}
clear() {
printer "🧹 Clearing all"
rm -rf $VENV_DIR
handler
}
printer() {
echo ""
echo $1
echo ""
}
handler() {
if [ $? -eq 0 ]; then
printer "✅ Process completed successfully"
else
printer "❌ An error occurred during the process"
exit 1
fi
}
case $1 in
start_mlflowui)
start_mlflowui
;;
setup)
setup
;;
clear)
clear
;;
*)
echo "Usage: $0 {setup|clear}"
;;
esac