Skip to content

Commit 77620e6

Browse files
committed
imagexd: Fix notebook inline image links
1 parent 45c0c7f commit 77620e6

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ NOTEBOOKS = $(patsubst %.md, %.ipynb, $(MD_OUTPUTS))
1515

1616
.SECONDARY: $(MD_OUTPUTS) $(NOTEBOOKS)
1717

18-
$(GENERATED_LESSONS_DIR)/%.ipynb:$(LESSONS_DIR)/%.md book/lessons
18+
$(GENERATED_LESSONS_DIR)/%.ipynb:$(LESSONS_DIR)/%.md book/lessons book/lessons/images
1919
# This does not work, due to bug in notedown; see https://github.com/aaren/notedown/issues/53
2020
#notedown --match=python --precode='%matplotlib inline' $< > $@
2121
notedown --match=python $< > $@
@@ -30,6 +30,9 @@ $(GENERATED_LESSONS_DIR)/%.ipynb:$(LESSONS_DIR)/%.md book/lessons
3030
book/lessons:
3131
mkdir -p book/lessons
3232

33+
book/lessons/images:
34+
ln -s ${PWD}/lessons/images ${PWD}/book/lessons/images
35+
3336
html: | _requirements.installed $(NOTEBOOKS) $(MD_OUTPUTS)
3437
@export SPHINXOPTS=-W; make -C book html
3538
cp $(GENERATED_LESSONS_DIR)/*.ipynb book/build/html/lessons/

book/imagexd.rst

+1
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ Schedule
5959
Matplotlib <lessons/matplotlib/matplotlib>
6060
lessons/0_images_are_arrays
6161
lessons/1_ransac
62+
lessons/1_advanced_numpy

lessons/1_advanced_numpy.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ FIRST...
1212

1313
How genes work:
1414

15-
<img src="../../_images/centraldogma.png" width="600">
15+
![central dogma](images/centraldogma.png)
1616

1717
What this means:
1818

19-
<img src="../../_images/gene-expression.png" width="600">
19+
![gene expression](images/gene-expression.png)
2020

2121
How we measure it:
2222

23-
<img src="../../_images/rnaseq.png" width="600">
23+
![rna sequence](images/rnaseq.png)
2424

2525
## some fake data
2626

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)