From 971b8929a008a4804acffa47163396129989e44e Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 3 Nov 2025 16:33:01 +1100 Subject: [PATCH 1/5] Test sphinx-exercise PR #81 with style_solution_after_exercise feature - Install sphinx-exercise from PR #81 branch - Enable style_solution_after_exercise = True in _config.yml - Testing new exercise/solution styling feature --- environment.yml | 2 +- lectures/_config.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 86b0477df..55d791ff4 100644 --- a/environment.yml +++ b/environment.yml @@ -10,7 +10,7 @@ dependencies: - quantecon-book-theme==0.10.0 - sphinx-tojupyter==0.3.1 - sphinxext-rediraffe==0.2.7 - - sphinx-exercise==1.0.1 + - sphinx-exercise @ git+https://github.com/executablebooks/sphinx-exercise.git@refs/pull/81/head - sphinx-proof==0.2.1 - sphinxcontrib-youtube==1.4.1 - sphinx-togglebutton==0.3.2 diff --git a/lectures/_config.yml b/lectures/_config.yml index 4b97f1551..2875ee1e8 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -122,6 +122,8 @@ sphinx: complex_and_trig: https://intro.quantecon.org/complex_and_trig.html # sphinx-proof proof_minimal_theme: true + # sphinx-exercise + style_solution_after_exercise: true # sphinx-tojupyter tojupyter_static_file_path: ["source/_static", "_static"] tojupyter_target_html: true From 6718337a0215319795cae2ffac3e96226673bd0d Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 3 Nov 2025 16:38:56 +1100 Subject: [PATCH 2/5] Improve sphinx-exercise config naming - Change from: style_solution_after_exercise: true - Change to: exercise_style: "solution_follow_exercise" This makes the option name clearer and more descriptive. Default value should be '' (empty string). --- lectures/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index 2875ee1e8..c1f90b454 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -123,7 +123,7 @@ sphinx: # sphinx-proof proof_minimal_theme: true # sphinx-exercise - style_solution_after_exercise: true + exercise_style: "solution_follow_exercise" # sphinx-tojupyter tojupyter_static_file_path: ["source/_static", "_static"] tojupyter_target_html: true From c99714ee2536d8ae639aa9df982129e2627464a2 Mon Sep 17 00:00:00 2001 From: mmcky Date: Wed, 5 Nov 2025 08:39:20 +1100 Subject: [PATCH 3/5] Add quantecon-book-theme PR #322 to testing - Install quantecon-book-theme from PR #322 - Now testing both sphinx-exercise PR #81 and theme PR #322 - Related: https://github.com/QuantEcon/quantecon-book-theme/pull/322 --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 55d791ff4..bf2f6086d 100644 --- a/environment.yml +++ b/environment.yml @@ -7,7 +7,7 @@ dependencies: - pip - pip: - jupyter-book==1.0.4post1 - - quantecon-book-theme==0.10.0 + - quantecon-book-theme @ git+https://github.com/QuantEcon/quantecon-book-theme.git@refs/pull/322/head - sphinx-tojupyter==0.3.1 - sphinxext-rediraffe==0.2.7 - sphinx-exercise @ git+https://github.com/executablebooks/sphinx-exercise.git@refs/pull/81/head From faea6e5921df40ba0560ced68f3f3414cd00c883 Mon Sep 17 00:00:00 2001 From: mmcky Date: Wed, 5 Nov 2025 11:09:11 +1100 Subject: [PATCH 4/5] Update to quantecon-book-theme 0.10.1 release - Change from PR branch to released version 0.10.1 - Theme PR #322 has been merged and released - Still testing sphinx-exercise PR #81 --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index bf2f6086d..9d974c7cf 100644 --- a/environment.yml +++ b/environment.yml @@ -7,7 +7,7 @@ dependencies: - pip - pip: - jupyter-book==1.0.4post1 - - quantecon-book-theme @ git+https://github.com/QuantEcon/quantecon-book-theme.git@refs/pull/322/head + - quantecon-book-theme==0.10.1 - sphinx-tojupyter==0.3.1 - sphinxext-rediraffe==0.2.7 - sphinx-exercise @ git+https://github.com/executablebooks/sphinx-exercise.git@refs/pull/81/head From a2d0d320ad3321bd7c144ff4872b0c3259c02229 Mon Sep 17 00:00:00 2001 From: mmcky Date: Wed, 5 Nov 2025 13:29:59 +1100 Subject: [PATCH 5/5] Remove exercise_style config to test default behavior - Testing default sphinx-exercise behavior without custom styling - Will compare results with previous exercise_style configuration --- lectures/_config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index c1f90b454..4b97f1551 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -122,8 +122,6 @@ sphinx: complex_and_trig: https://intro.quantecon.org/complex_and_trig.html # sphinx-proof proof_minimal_theme: true - # sphinx-exercise - exercise_style: "solution_follow_exercise" # sphinx-tojupyter tojupyter_static_file_path: ["source/_static", "_static"] tojupyter_target_html: true