-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 987 Bytes
/
Makefile
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
# =================================
# General
# =================================
PYTHON_VERSION := 3.11
JUPYTER_PORT := 8888
PLOTLY_DASH_PORT := 9000
# =================================
# Data Science Related Setup
# =================================
path:
python3 -m venv env
source env/bin/activate
https:
pip install --upgrade pip
pip3 install certifi
"/Applications/Python ${PYTHON_VERSION}/Install Certificates.command"
# =================================
# Python Dependencies
# =================================
i:
pip install --upgrade pip setuptools
pip install pip-tools
pip-compile --strip-extras requirements.piptools
npm install
req: # OR
pip3 install -r requirements.txt
# =================================
# Commands
# =================================
runj:
lsof -i :${JUPYTER_PORT} | awk 'NR!=1 {print $$2}' | xargs -r kill -9
jupyter lab
rund:
lsof -i :${PLOTLY_DASH_PORT} | awk 'NR!=1 {print $$2}' | xargs -r kill -9
python3 run.py