Classes can also be run from a notebook¶
Print output (and error messages) from the simulation can be seen from the "log console". Open "View-> Show Log Console", and set the console to "info". Note the first line %matplotlib widget
, is needed by jupyter-lab in order to display the animation
In [5]:
%matplotlib widget
from simul import Simul
from animate import Animate
simulation = Simul(simul_time=0.02, sigma=0.5, L=6)
animate = Animate(simulation)
animate.go(nframes=100)
In [ ]: