-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi @jstac , @mmcky , @AakashGfude , @choldgraf and @najuzilu ,
I tried to convert exercises and their solutions of lecture functions in repo: https://github.com/QuantEcon/lecture-python-programming.myst with sphinx-exercise syntax, and I got the some weird results in exercises and solutions in the compiled file.
Please see my PR: QuantEcon/lecture-python-programming.myst#75 or go directly to the exercise and solution part of the compiled file: https://5f8054a8c3e979a2ba380877--epic-agnesi-957267.netlify.app/functions.html#exercises
As I stated in the PR above and you can see in the compiled file, there are two possible issues:
- for Exercise part, the name for exercises are
Exercise 4.1,Exercise 4.2,Exercise 4.3, instead ofExercise 1,Exercise 2,Exercise 3. - for Solution part, it fails to execute all
python cells(it might be related to theJupyterBook, as I discussed with @najuzilu )!
I am wondering whether you think it is a good idea to add the feature of customizing the name of an exercise into the sphinx-exercise extension.
Alternatively, do you think it is possible to force those exercises numbered from 1?
As suggested by @najuzilu , I created this issue to request for the new feature and report another issue in executing python cells.