-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
113 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
\#* | ||
.#* | ||
_requirements.installed | ||
build | ||
*.DS_Store | ||
*.html | ||
*.ipynb_checkpoints | ||
*.pyc | ||
*~ | ||
*pano-advanced-output.png | ||
book/lessons | ||
|
||
# ignoring website local builds | ||
site/_build | ||
# Ignore built website | ||
book/_build | ||
|
||
# Ignore auto-generated content | ||
book/_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,28 @@ | ||
.PHONY: html | ||
.PHONY: clean book | ||
|
||
OBSHELL=/bin/bash | ||
.DEFAULT_GOAL = book | ||
|
||
.DEFAULT_GOAL = html | ||
NB_DIR = modules | ||
EXEC_NB_DIR = book/_modules | ||
|
||
LESSONS_DIR = lessons | ||
GENERATED_LESSONS_DIR = site/lessons | ||
MARKDOWNS = $(wildcard $(NB_DIR)/*.md) | ||
NOTEBOOKS = $(patsubst $(NB_DIR)/%.md, $(EXEC_NB_DIR)/%.ipynb, $(MARKDOWNS)) | ||
|
||
_requirements.installed: | ||
pip install -q -r requirements.txt | ||
touch _requirements.installed | ||
|
||
MARKDOWNS = $(wildcard $(LESSONS_DIR)/*.md) | ||
MD_OUTPUTS = $(patsubst $(LESSONS_DIR)/%.md, $(GENERATED_LESSONS_DIR)/%.md, $(MARKDOWNS)) | ||
NOTEBOOKS = $(patsubst %.md, %.ipynb, $(MD_OUTPUTS)) | ||
$(EXEC_NB_DIR): | ||
mkdir book/_modules | ||
|
||
.SECONDARY: $(MD_OUTPUTS) $(NOTEBOOKS) | ||
$(EXEC_NB_DIR)/%.ipynb:$(NB_DIR)/%.md $(EXEC_NB_DIR) | ||
@# Jupytext will also catch and print execution errors | ||
@# unless a cell is marked with the `raises-exception` tag | ||
jupytext --execute --to ipynb --output $@ $< | ||
|
||
$(GENERATED_LESSONS_DIR)/%.ipynb:$(LESSONS_DIR)/%.md site/lessons site/lessons/images | ||
# This does not work, due to bug in notedown; see https://github.com/aaren/notedown/issues/53 | ||
#notedown --match=python --precode='%matplotlib inline' $< > $@ | ||
notedown --match=python $< > $@ | ||
jupyter nbconvert --execute --inplace $@ --ExecutePreprocessor.timeout=-1 | ||
|
||
%.md:%.ipynb | ||
jupyter nbconvert --to=mdoutput --output="$(notdir $@)" --output-dir=$(GENERATED_LESSONS_DIR) $< | ||
# $(eval NBSTRING := [📂 Download lesson notebook](.\/$(basename $(notdir $@)).ipynb)\n\n) | ||
# sed -i'.bak' '1s/^/$(NBSTRING)/' $@ | ||
|
||
site/lessons: | ||
mkdir -p book/lessons | ||
|
||
site/lessons/images: | ||
ln -s ${PWD}/lessons/images ${PWD}/site/lessons/images | ||
|
||
html: site/lessons _requirements.installed $(NOTEBOOKS) $(MD_OUTPUTS) | ||
@export SPHINXOPTS=-W; make -C site html | ||
cp $(GENERATED_LESSONS_DIR)/*.ipynb book/build/html/lessons/ | ||
book: _requirements.installed $(NOTEBOOKS) | ||
@export SPHINXOPTS=-W; make -C book html | ||
|
||
clean: | ||
rm -rf $(GENERATED_LESSONS_DIR)/* | ||
make -C book clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# scikit-image applications | ||
|
||
A collection of tutorials highlighting the use of scikit-image for applications in science. | ||
|
||
```{toctree} | ||
--- | ||
maxdepth: 1 | ||
--- | ||
_modules/adv0_chromosomes.md | ||
_modules/adv1_lesion-quantification.md | ||
_modules/adv2_microarray.md | ||
_modules/adv3_panorama_stitching.md | ||
_modules/adv4_warping.md | ||
_modules/adv5_pores.md | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.