Describe the problem
Extension causes issue when {exercise} and {solution} aren't used but extension is loaded
Link to your repository or website
QuantEcon/lecture-datascience.myst#199
Steps to reproduce
Build the lecture-datascience.myst quantecon lecture site
The version of Python you're using
No response
Your operating system
No response
Versions of your packages
No response
Additional context
To resolve this I need to ensure the sphinx_exercise_registry is initialised when the extension is loaded.