-
Notifications
You must be signed in to change notification settings - Fork 2
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
Compatible with Julia 1.9.3 Jupyter Notebooks? #6
Comments
Hi Simon, this is caused by the latest release of the upstream Jutul package. I have pushed a new release of BattMo.jl that should appear in the package manager soon: JuliaRegistries/General#93830 Alternatively, as a quick-fix, you can install the earlier version of Jutul explicitly in your environment to fix it: Pkg.add(name="Jutul", version="0.2.14") Hopefully that should make it work. |
Thanks, that helped. The example now runs, except the plotting (maybe unrelated) using BattMo
# Simulate case
states, reports, extra, exported = run_battery("p2d_40");
# Plot result
using GLMakie
voltage = map(state -> state[:BPP][:Phi][1], states)
t = cumsum(extra[:timesteps])
fig = Figure()
ax = Axis(fig[1, 1], ylabel = "Voltage / V", xlabel = "Time / s", title = "Discharge curve")
lines!(ax, t, voltage)
display(fig)
|
I'm glad it runs! I think the error is related to compilation of the GLMakie package. You could try with CairoMakie instead - the plots will not be interactive, but it may be better than nothing. |
I was trying to run
within a Julia 1.9.3 Jupyter Notebooks, but precompilations fails:
The text was updated successfully, but these errors were encountered: