Skip to content

Commit fb6eeb1

Browse files
committed
Fix printing in some of the docs
1 parent 5060e08 commit fb6eeb1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/src/basics/Logging.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ the trace to see what is happening:
3939

4040
```@example tracing
4141
solve(prob; show_trace = Val(true), trace_level = TraceAll(10))
42+
nothing; # hide
4243
```
4344

4445
You can also store the trace in the solution object:

docs/src/tutorials/optimizing_parameterized_ode.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,23 @@ Now, we can use any NLLS solver to solve this problem.
5555
```@example parameterized_ode
5656
res = solve(nlls_prob, LevenbergMarquardt(); maxiters = 1000, show_trace = Val(true),
5757
trace_level = TraceAll())
58+
nothing # hide
59+
```
60+
61+
```@example parameterized_ode
62+
res
5863
```
5964

6065
We can also use Trust Region methods.
6166

6267
```@example parameterized_ode
6368
res = solve(nlls_prob, TrustRegion(); maxiters = 1000, show_trace = Val(true),
6469
trace_level = TraceAll())
70+
nothing # hide
71+
```
72+
73+
```@example parameterized_ode
74+
res
6575
```
6676

6777
Let's plot the solution.
@@ -72,5 +82,4 @@ sol_fit = solve(prob2, Tsit5(); p = res.u)
7282
sol_true = solve(prob2, Tsit5(); p = p)
7383
plot(sol_true; linewidth = 3)
7484
plot!(sol_fit; linewidth = 3, linestyle = :dash)
75-
savefig("LV_ode_fit.png")
7685
```

0 commit comments

Comments
 (0)