From ecc91355136d8294c64ea479aa4e1cf761b04309 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Thu, 21 May 2026 13:36:07 -0400 Subject: [PATCH] Fix docs: import JumpProcesses/StochasticDiffEq explicitly after DiffEq 8.0 DifferentialEquations.jl v8.0.0 only reexports SciMLBase and OrdinaryDiffEq, dropping the JumpProcesses, StochasticDiffEq, DiffEqNoiseProcess, DiffEqCallbacks and other reexports it used to provide in v7. The docs tutorials were relying on `using DifferentialEquations` to bring `JumpProblem`, `ConstantRateJump`, `VariableRateJump`, `Direct`, `SSAStepper`, `SRIW1`, etc. into scope, which caused the Documenter build to fail with `UndefVarError: JumpProblem not defined` at jump_diffusion.md:163 and similar errors in discrete_stochastic_example.md once docs/Project.toml was bumped to allow DifferentialEquations 8.0. Replace `using DifferentialEquations` with explicit `using JumpProcesses, OrdinaryDiffEq[, StochasticDiffEq]` in the affected tutorial @example blocks, @setup blocks, and corresponding Pkg.add prose. simple_poisson_process.md already imported JumpProcesses directly and is unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) Co-Authored-By: Chris Rackauckas --- .../src/tutorials/discrete_stochastic_example.md | 16 ++++++++-------- docs/src/tutorials/jump_diffusion.md | 9 ++++----- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/docs/src/tutorials/discrete_stochastic_example.md b/docs/src/tutorials/discrete_stochastic_example.md index b603f11b..99db5078 100644 --- a/docs/src/tutorials/discrete_stochastic_example.md +++ b/docs/src/tutorials/discrete_stochastic_example.md @@ -42,15 +42,15 @@ Catalyst, which should ensure optimal jump types are selected to represent each reaction, and necessary data structures for the simulation algorithms, such as dependency graphs, are automatically calculated. -We'll make use of the -[DifferentialEquations.jl](https://docs.sciml.ai/DiffEqDocs/stable/) -meta package, which includes JumpProcesses and ODE/SDE solvers, Plots.jl, and -(optionally) Catalyst.jl in this tutorial. If not already installed, they can be -added as follows: +We'll make use of [JumpProcesses.jl](https://docs.sciml.ai/JumpProcesses/stable/) +together with [OrdinaryDiffEq.jl](https://docs.sciml.ai/OrdinaryDiffEq/stable/) +(for ODE solvers), Plots.jl, and (optionally) Catalyst.jl in this tutorial. If +not already installed, they can be added as follows: ```julia using Pkg -Pkg.add("DifferentialEquations") +Pkg.add("JumpProcesses") +Pkg.add("OrdinaryDiffEq") Pkg.add("Plots") Pkg.add("Catalyst") # optional ``` @@ -58,12 +58,12 @@ Pkg.add("Catalyst") # optional Let's now load the required packages and set some default plot settings ```julia -using DifferentialEquations, Plots, LinearAlgebra +using JumpProcesses, OrdinaryDiffEq, Plots, LinearAlgebra default(; lw = 2) ``` ```@setup tut2 -using DifferentialEquations, Plots, LinearAlgebra +using JumpProcesses, OrdinaryDiffEq, Plots, LinearAlgebra default(; lw = 2) ``` diff --git a/docs/src/tutorials/jump_diffusion.md b/docs/src/tutorials/jump_diffusion.md index 4ab167a0..8b73b8df 100644 --- a/docs/src/tutorials/jump_diffusion.md +++ b/docs/src/tutorials/jump_diffusion.md @@ -30,17 +30,16 @@ not already installed ```julia using Pkg -Pkg.add("DifferentialEquations") +Pkg.add("JumpProcesses") +Pkg.add("OrdinaryDiffEq") +Pkg.add("StochasticDiffEq") Pkg.add("Plots") ``` -DifferentialEquations.jl will install JumpProcesses, along with the needed ODE and -SDE solvers. - We then load these packages, and set some plotting defaults, as ```@example tut3 -using DifferentialEquations, Plots +using JumpProcesses, StochasticDiffEq, OrdinaryDiffEq, Plots default(; lw = 2) ```