Spaces:
Sleeping
Sleeping
Download LightZero/docs/source/notebook.mk from OpenDILabCommunity/gomoku: direct link, hf CLI and curl.
- Browser
- Download file 715 Bytes
-
https://huggingface.co/spaces/OpenDILabCommunity/gomoku/resolve/main/LightZero/docs/source/notebook.mk
- Command line
-
hf download hf://spaces/OpenDILabCommunity/gomoku/LightZero/docs/source/notebook.mk
-
curl -L -o notebook.mk https://huggingface.co/spaces/OpenDILabCommunity/gomoku/resolve/main/LightZero/docs/source/notebook.mk
715 Bytes
| JUPYTER ?= $(shell which jupyter) | |
| NBCONVERT ?= ${JUPYTER} nbconvert | |
| SOURCE ?= . | |
| IPYNBS := $(shell find ${SOURCE} -name *.ipynb -not -name *.result.ipynb) | |
| RESULTS := $(addsuffix .result.ipynb, $(basename ${IPYNBS})) | |
| %.result.ipynb: %.ipynb | |
| cp "$(shell readlink -f $<)" "$(shell readlink -f $@)" && \ | |
| cd "$(shell dirname $(shell readlink -f $<))" && \ | |
| PYTHONPATH="$(shell dirname $(shell readlink -f $<)):${PYTHONPATH}" \ | |
| $(NBCONVERT) --to notebook --inplace --execute "$(shell readlink -f $@)" | |
| build: ${RESULTS} | |
| all: build | |
| clean: | |
| rm -rf \ | |
| $(shell find ${SOURCE} -name *.result.ipynb) | |
| for nb in ${IPYNBS}; do \ | |
| if [ -f $$nb ]; then \ | |
| $(NBCONVERT) --clear-output --inplace $$nb; \ | |
| fi; \ | |
| done; |