https://github.com/najuzilu/jb_exercise_example
How to use `sphinx-exercise` with Jupyter Book
https://github.com/najuzilu/jb_exercise_example
Last synced: 2 months ago
JSON representation
How to use `sphinx-exercise` with Jupyter Book
- Host: GitHub
- URL: https://github.com/najuzilu/jb_exercise_example
- Owner: najuzilu
- Created: 2020-11-10T13:32:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T13:43:37.000Z (over 4 years ago)
- Last Synced: 2025-01-26T20:32:00.679Z (4 months ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use sphinx-exercise with Jupyter Book
Below are some instructions on how to setup a Jupyter Book example and utilize `sphinx-exercise` extension.
```bash
conda create -n mybook pip
conda activate mybook
pip install -r requirements.txtjb create mybook
cd mybook
```Add extension under `_config.yml`:
```yaml
sphinx:
extra_extensions:
- sphinx_exercise
```Now introduce an exercise directive
```{exercise}
This is an exercise directive.
```Next build the book:
```bash
jb clean .
jb build .
```