Skip to content

Commit f5af297

Browse files
committed
check notebook download
1 parent 0844963 commit f5af297

File tree

5 files changed

+42
-3
lines changed

5 files changed

+42
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,19 @@ jobs:
3232
if: steps.cache-execution.outputs.cache-hit != 'true'
3333
run: python -m pip install -r myst_requirements.txt
3434

35-
- name: Install jupyter book 2.0
36-
run: pip install "jupyter-book>=2.0.0a0"
35+
# - name: Install jupyter book 2.0
36+
# run: pip install "jupyter-book>=2.0.0a0"
37+
38+
# - name: Build HTML
39+
# working-directory: ./lectures
40+
# run: jupyter book build --html --execute
41+
42+
- name: Install MyST Markdown CLI
43+
run: npm install -g git+https://github.com/kp992/mystmd.git#ipynb_option
3744

3845
- name: Build HTML
3946
working-directory: ./lectures
40-
run: jupyter book build --html --execute
47+
run: myst build --html --ipynb --execute
4148

4249
- name: Upload build output
4350
uses: actions/upload-pages-artifact@v3

lectures/about_py.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ kernelspec:
77
display_name: Python 3
88
language: python
99
name: python3
10+
exports:
11+
- format: ipynb
12+
output: exports/about_py.ipynb
13+
downloads:
14+
- file: ./about_py.md
15+
title: Markdown (md)
16+
- file: exports/about_py.ipynb
17+
title: IPython (.ipynb)
1018
---
1119

1220

lectures/functions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ kernelspec:
77
display_name: Python 3
88
language: python
99
name: python3
10+
exports:
11+
- format: ipynb
12+
output: exports/functions.ipynb
13+
downloads:
14+
- file: ./functions.md
15+
title: Markdown (md)
16+
- file: exports/functions.ipynb
17+
title: IPython (.ipynb)
1018
---
1119

1220
# Functions

lectures/jax_intro.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
1111
name: python3
12+
exports:
13+
- format: ipynb
14+
output: exports/jax_intro.ipynb
15+
downloads:
16+
- file: ./jax_intro.md
17+
title: Markdown (md)
18+
- file: exports/jax_intro.ipynb
19+
title: IPython (.ipynb)
1220
---
1321

1422
# JAX

lectures/matplotlib.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ kernelspec:
77
display_name: Python 3
88
language: python
99
name: python3
10+
exports:
11+
- format: ipynb
12+
output: exports/matplotlib.ipynb
13+
downloads:
14+
- file: ./matplotlib.md
15+
title: Markdown (md)
16+
- file: exports/matplotlib.ipynb
17+
title: IPython (.ipynb)
1018
---
1119

1220
# Matplotlib

0 commit comments

Comments
 (0)