Below are some instructions on how to setup a Jupyter Book example and utilize sphinx-exercise
extension.
conda create -n mybook pip
conda activate mybook
pip install -r requirements.txt
jb create mybook
cd mybook
Add extension under _config.yml
:
sphinx:
extra_extensions:
- sphinx_exercise
Now introduce an exercise directive
This is an exercise directive.
Next build the book:
jb clean .
jb build .