-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (27 loc) · 739 Bytes
/
makefile
File metadata and controls
37 lines (27 loc) · 739 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
PYTHON_VERSION=3
VENV=.venv
python=$(VENV)/bin/python
pip=$(VENV)/bin/pip3
jupyter=$(VENV)/bin/jupyter
# Utility scripts to prettify echo outputs
TERM ?= 'ansi'
bold := $(shell tput -T $(TERM) bold)
sgr0 := $(shell tput -T $(TERM) sgr0)
.PHONY: bootstrap
bootstrap: venv requirements
.PHONY: clean
clean:
@echo "$(bold)Clean up old virtualenv and cache$(sgr0)"
rm -rf $(VENV)
.PHONY: requirements
requirements:
$(pip) install --upgrade RISE
$(pip) install --upgrade jupyterlab numpy pandas matplotlib seaborn bokeh scipy scikit-learn
.PHONY: venv
venv: clean
@echo "$(bold)Create virtualenv$(sgr0)"
virtualenv -p /usr/bin/python$(PYTHON_VERSION) $(VENV)
$(pip) install --upgrade pip
.PHONY: run
run:
$(jupyter) notebook