-
-
Notifications
You must be signed in to change notification settings - Fork 158
Setup progress bar of sciml_train to be platform agnostic #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Do you mean a terminal-based progress bar UI? There is https://github.com/c42f/TerminalLoggers.jl so it should work now. A toy example: using Logging
using OrdinaryDiffEq
using TerminalLoggers
with_logger(TerminalLogger()) do
solve(
ODEProblem((u, p, t) -> (sleep(0.01); -u), 1.0, nothing),
Euler();
dt = 0.5,
tspan = (0.0, 100.0),
progress = true,
progress_steps = 1,
)
end FYI, ideally,
The next version of ProgressLogging.jl (a Juno.jl spin-off) is going to have |
@Vaibhavdixit02 @abhigupta768 reopening to make this just a little more automatic, following @devmotion's lead: |
https://github.com/JuliaDiffEq/OrdinaryDiffEq.jl/blob/10efbd7e331f181379118d9e8e4b6a4c5e2216b8/src/solve.jl#L89
https://github.com/JuliaDiffEq/OrdinaryDiffEq.jl/blob/311726795dabdabe50a8392d753213b6d5d74c2e/src/integrators/integrator_utils.jl#L132-L136
is how it should be done. Then it should auto-switch over to command line tools. @tkf are the command line tools done?
The text was updated successfully, but these errors were encountered: