-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
29 lines (23 loc) · 884 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
SRC = $(wildcard ./*.ipynb)
SHELL=/bin/bash -o pipefail
REPO=$(shell basename "`pwd`")
it:
. .venv/bin/activate && nbdev_read_nbs
. .venv/bin/activate && nbdev_build_lib
. .venv/bin/activate && nbdev_clean_nbs
git status
test:
. .venv/bin/activate && nbdev_test_nbs
readme:
. .venv/bin/activate && nbdev_build_docs
touch docs
clean:
rm -rf dist
env:
virtualenv .venv -p python3.8 --prompt "[$(REPO)] "
. .venv/bin/activate && pip install jupyter jupyterlab nbdev ipywidgets
. .venv/bin/activate && pip install -e .
. .venv/bin/activate && (jupyter labextension check @jupyterlab-plotly || jupyter labextension install jupyterlab-plotly)
. .venv/bin/activate && (jupyter labextension check @jupyter-widgets/jupyterlab-manager || jupyter labextension install @jupyter-widgets/jupyterlab-manager)
server:
. .env && . .venv/bin/activate && jupyter lab --ip 0.0.0.0