generated from dmitmatveev/my_common_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 891 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
.DEFAULT_GOAL := run
D_KERNEL_ENV_NAME = "pipenv-data_analytics_test"
D_NOTEBOOK = "data_analytics_task.ipynb"
build_kernel : build
echo "Starting of 'build_kernel'"
pipenv run python -m ipykernel install --user --name=$(D_KERNEL_ENV_NAME)
build : pip-update
echo "Starting of 'build'"
pipenv install
build-notebook : pip-update
echo "Starting of 'build-notebook'"
pip install notebook --user # installing globally for the user
build-lab : pip-update
echo "Starting of 'build-lab'"
pip install jupyterlab --user # installing globally for the user
run : build-notebook build_kernel
echo "Starting of 'run'"
jupyter notebook $(D_NOTEBOOK)
run-lab : build-lab build_kernel
echo "Starting of 'run-lab'"
jupyter lab $(D_NOTEBOOK)
pip-update :
echo "Starting of 'pip-update'"
pip install --upgrade pip --user
update : pip-update
echo "Starting of 'update'"
pipenv update