Skip to content

Commit

Permalink
use nbconvert for slides
Browse files Browse the repository at this point in the history
Running into various problems with the RISE extension; it doesn't seem to be maintained.

- jupyterlab-contrib/rise#27
- jupyterlab-contrib/rise#51
  • Loading branch information
afeld committed Oct 20, 2024
1 parent 420744f commit 8c37c0c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.slides.html
__pycache__/
_build/
.ipynb_checkpoints/
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ jupyter-book build .
```sh
jupyter lab --no-browser
```

## Generating slides

```sh
jupyter nbconvert --to slides lecture_NN.ipynb
open lecture_NN.slides.html
```
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ dependencies:
- ipykernel
- jupyter-book
- jupyterlab
- jupyterlab_rise
- nb_conda_kernels
- nbconvert
- nbdime
- nbformat
- pytest
Expand Down
2 changes: 1 addition & 1 deletion src/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def test_num_slides(file):
pytest.xfail("The various pieces of the lecture can be scaled appropriately")

slide_count = num_slides(notebook.cells)
assert slide_count <= 28
assert slide_count <= 27


@pytest.mark.parametrize("file", notebooks)
Expand Down

0 comments on commit 8c37c0c

Please sign in to comment.