py-pde icon indicating copy to clipboard operation
py-pde copied to clipboard

PlotTracker doesn't show up on Jupyter notebook.

Open icarosadero opened this issue 8 months ago • 1 comments

When I try to use PlotTracker to keep plotting the state of the pde over time on a Jupyter notebook, it only shows the first plot. I am on version 0.40.0. Here's an example of how I am using it:

tracker = PlotTracker(interrupts="00:01:00", show=True)
sol = Diffuser(**params).solve(state, t_range=5000, dt=0.01, tracker=["progress", tracker])

The output:

  0%|          | 0/5000.0 [00:17<?, ?it/s]              
<Figure size 640x480 with 0 Axes>
  0%|          | 0.02/5000.0 [00:22<1569:07:49, 1129.78s/it]
<Figure size 640x480 with 0 Axes>
  0%|          | 0.06/5000.0 [00:22<527:52:23, 380.07s/it]  
<Figure size 640x480 with 0 Axes>
  0%|          | 0.81/5000.0 [00:26<45:09:07, 32.51s/it]  

The actual image isn't displayed.

icarosadero avatar Jun 21 '24 19:06 icarosadero