Skip to content

Fix YAML parse error in mean-reversion-strategy notebooks - #5

Merged
steveya merged 3 commits into
masterfrom
copilot/fix-latest-action-ci-failure
Mar 4, 2026
Merged

steveya merged 3 commits into
masterfrom
copilot/fix-latest-action-ci-failure

Conversation

Copilot AI commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

CI was failing with YAMLException: unknown escape sequence when Quarto parsed fig-cap cell directives in the mean-reversion-strategy notebook series. YAML double-quoted strings interpret \ as an escape character, making LaTeX sequences like \sqrt, \theta, \sigma, \mathrm invalid.

Changes

  • posts/mean-reversion-strategy-2/index.ipynb — converted fig-cap values from double-quoted to single-quoted YAML strings in cells 7, 10, 11, 12
  • posts/mean-reversion-strategy-3/index.ipynb — converted fig-cap values from double-quoted to single-quoted YAML strings in cells 3, 6, 7, 8
  • posts/mean-reversion-strategy-4/index.ipynb — converted fig-cap values from double-quoted to single-quoted YAML strings in cells 3, 5, 8, 10

Single-quoted YAML strings treat backslashes literally, allowing LaTeX math to pass through correctly.

-#| fig-cap: "The standard deviation of $Y_T$ matches the closed-form $\sqrt{M^2 s_T^2 + s_T^4/2}$."
+#| fig-cap: 'The standard deviation of $Y_T$ matches the closed-form $\sqrt{M^2 s_T^2 + s_T^4/2}$.'

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…ategy-2 notebook

Co-authored-by: steveya <7390489+steveya@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix latest action CI failure Fix YAML parse error in mean-reversion-strategy-2 notebook Mar 4, 2026
@steveya

steveya commented Mar 4, 2026

Copy link
Copy Markdown
Owner

CI failed again @copilot

…ategy-3 and -4 notebooks

Co-authored-by: steveya <7390489+steveya@users.noreply.github.com>

Copilot AI commented Mar 4, 2026

Copy link
Copy Markdown
Contributor Author

CI failed again @copilot

The same YAML backslash issue existed in mean-reversion-strategy-3 (4 cells) and mean-reversion-strategy-4 (4 cells) as well. Fixed all of them in 4565bc3 — converted remaining double-quoted fig-cap strings with LaTeX backslash sequences to single-quoted strings across all notebooks in the series.

Copilot AI changed the title Fix YAML parse error in mean-reversion-strategy-2 notebook Fix YAML parse error in mean-reversion-strategy notebooks Mar 4, 2026
@steveya
steveya marked this pull request as ready for review March 4, 2026 02:03
@steveya
steveya merged commit 3ce4f4d into master Mar 4, 2026
@steveya
steveya deleted the copilot/fix-latest-action-ci-failure branch March 4, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants