Issue 20: Improving the example script#63
Merged
SamuelBrand1 merged 10 commits intomainfrom Feb 20, 2026
Merged
Conversation
Add a generated Getting Started vignette and associated images, replace the old tutorial files, and update documentation build scripts and links. Changes include: adding docs/src/vignettes/getting-started.md and several PNG figures; removing docs/src/vignettes/tutorial.md and renaming docs/vignettes/tutorial.jl -> docs/vignettes/getting-started.jl; update README image paths and docs/src/index.md to point to the new vignette; adjust .gitignore to include docs/src/vignettes/*.png; simplify docs/Project.toml package path; and revise docs/make.jl and docs/make_vignettes.jl to generate CommonMark vignette markdown via Literate (execute = true) and include the vignette in the site pages. Also include a minor change to src/forecasting.jl.
This is because the over nowcasts parallelism relies on Julia 1.11+
Contributor
There was a problem hiding this comment.
Pull request overview
This PR modernizes the “getting started” documentation pipeline (moving the tutorial to a Literate.jl-generated vignette) and updates core forecasting utilities to improve scenario batching, including parallel execution and progress reporting.
Changes:
- Replace the Quarto tutorial with a Literate.jl source (
docs/vignettes/getting-started.jl) and commit the generated markdown underdocs/src/vignettes/. - Update documentation navigation/build config to point to the new vignette location and add required docs dependencies.
- Refactor forecasting to remove
forecast(...; verbose=...), adjust HMC sampling logic, and parallelizeforecast_with_nowcastsviaThreads.@spawn+ a progress bar.
Reviewed changes
Copilot reviewed 12 out of 21 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/forecasting.jl |
Refactors forecast / _forecast and parallelizes forecast_with_nowcasts. |
src/NowcastAutoGP.jl |
Re-exports GPModel for convenience. |
docs/vignettes/tutorial.qmd |
Removes the Quarto-based tutorial source. |
docs/vignettes/getting-started.jl |
Adds the Literate.jl vignette source. |
docs/src/vignettes/tutorial.md |
Removes the previously committed generated tutorial markdown. |
docs/src/vignettes/getting-started.md |
Adds the generated markdown output from Literate.jl. |
docs/src/index.md |
Updates “Getting started” link to the new vignette path. |
docs/make_vignettes.jl |
Adds a script to generate vignette markdown/images from Literate sources. |
docs/make.jl |
Updates Documenter pages config to include the new vignette. |
docs/Project.toml |
Adds documentation dependencies (e.g., Literate, Parameters, ProgressMeter). |
README.md |
Updates image paths to the new generated vignette outputs. |
Project.toml |
Bumps Julia compat to 1.11. |
.gitignore |
Tracks vignette-generated PNGs under docs/src/vignettes/. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #63 +/- ##
==========================================
+ Coverage 94.64% 95.08% +0.43%
==========================================
Files 5 5
Lines 112 122 +10
==========================================
+ Hits 106 116 +10
Misses 6 6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements to the documentation, and forecasting code in the
NowcastAutoGP.jlproject. The most significant changes include a new automated vignette generation workflow using Literate.jl, updates to documentation images and navigation, improvements to parallelism and progress reporting in forecasting functions, and minor API enhancements.Documentation workflow and navigation:
docs/make_vignettes.jlto automate the generation of markdown vignettes from Literate.jl scripts, and updated documentation navigation to reference the new vignette locations. [1] [2] [3] [4]README.mdto use new paths reflecting the generated vignette outputs.Dependency management:
AutoGP,Literate,Parameters, andProgressMetertodocs/Project.toml.Forecasting code improvements:
forecast_with_nowcastsby usingThreads.@spawnfor concurrent scenario processing and a progress bar for user feedback. [1] [2]forecastand_forecastfunctions by removing theverboseargument and related logging, and by streamlining the HMC forecast sampling logic. [1] [2]API enhancements:
GPModelas a re-exported constant for user convenience inNowcastAutoGP.jl.forecast_with_nowcastsfor better input validation.