-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 828 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
.DELETE_ON_ERROR:
.PHONY: README.md jupyter ipython-kernel tensorboard black
bin/gh-md-toc:
mkdir -p bin
wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc
chmod a+x gh-md-toc
mv gh-md-toc bin/
README.md: bin/gh-md-toc
./bin/gh-md-toc --insert README.md
rm -f README.md.orig.* README.md.toc.*
ipython-kernel:
poetry run ipython kernel install --user --name=generative-models
jupyter:
mkdir -p logs/nohup
nohup poetry run jupyter notebook src/ > logs/nohup/jupyter.log &
tensorboard:
mkdir -p logs/nohup
nohup poetry run tensorboard --logdir logs/tensorboard/ > logs/nohup/tensorboard.log &
sleep 2
cat logs/nohup/tensorboard.log
black:
poetry run black experiments --line-length 100
install:
poetry run pip install --upgrade pip
poetry update -vv
$(MAKE) ipython-kernel