Repository navigation
Document observed access and plotting from a live integrator - #5081
Merged
ChrisRackauckas merged 1 commit intoSep 7, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
The interactive-integrator page showed how to advance one integrator and read a state variable, but not how to reach the quantities structural simplification removed from the state vector, which is what a live display usually needs. It also did not say that `plot(integrator)` takes the same `idxs` specifications as `plot(sol)`, or that it draws the current step rather than the accumulated history. Depends on SciMLBase 3.52.0 and OrdinaryDiffEqCore 4.17.0; observed equations do not resolve through the integrator interpolant or the integrator plot recipe before those. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam
ChrisRackauckas
marked this pull request as ready for review
September 7, 2026 06:50
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 7, 2026
- Add analytical parameter jacobian code generation (#5083) - Document observed access and plotting from a live integrator (#5081) - [bot] Solve implicit affects at the ODE solver's tolerance (#5080) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
What changed and why
docs/src/examples/interactive_simulation.md(added in#5055) shows how to keep one integrator
alive and read a state variable from it, but not how to reach the quantities structural
simplification removed from the state vector — which is what a live display usually wants.
That was the follow-up raised in
#5006 (comment): the plot
recipe was not observed-aware, so the plot could not be updated from the integrator.
This adds a section covering
integrator[obs],integrator(t; idxs = obs), andplot(integrator; idxs = ...)with the same specificationsplot(sol)takes, plus the onesemantic point that catches people out:
plot(integrator)draws the current step, not theaccumulated history — plot
integrator.solfor that.Dependencies
The behavior this documents does not exist in the released packages. It needs:
observed-aware integrator plot recipe and
symbolic_interpolation4.17.0, symbolic
idxsinintegrator(t; idxs)This should not merge before both are registered.
Verification
The page uses plain ```julia fences, so Documenter does not execute them. I ran every added
line by hand against the two branches above:
energyis the observed equation(pos^2 + vel^2) / 2on an undamped oscillator withinput = 0, so0.5is the conserved value the example should report.Full docs build (
julia --project=docs docs/make.jl) exits 0 with no errors.Also run:
typoson the changed file.Not verified
Nothing beyond the docs build was run; this PR is documentation only and changes no code.
This PR should be ignored until reviewed by @ChrisRackauckas.
🤖 Generated with Claude Code
https://claude.ai/code/session_019wKpyZHy9u4QhR4ePiVmam