-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (32 loc) · 959 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
.ONESHELL:
SHELL = /bin/bash
create_environment :
source /srv/conda/etc/profile.d/conda.sh
conda env create -f environment.yml
conda activate notebook
conda install ipykernel
python -m ipykernel install --user --name developer --display-name "IPython - developer"
.PHONY: html
html:
jupyter-book build .
.PHONY: all
all:
jupyterbook execute EDAandModel.ipynb
jupyterbook execute main.ipynb
.PHONY: html-hub
html-hub: conf.py
sphinx-build . _build/html -D html_baseurl=${JUPYTERHUB_SERVICE_PREFIX}proxy/absolute/8000
@echo
@echo "To start the Python http server, use:"
@echo "python -m http.server --directory ${PWD}/_build/html"
@echo "and visit this link with your browser:"
@echo "https://stat159.datahub.berkeley.edu/user-redirect/proxy/8000/index.html"
conf.py: _config.yml _toc.yml
jupyter-book config sphinx .
.PHONY: clean
clean:
rm -rf figures/*
rm -rf _build/*
.PHONY : help
help : Makefile
@sed -n 's/^##//p' $<