Problem to plot

Hello everyone,

I don’t know what happened but today I wasn’t able to plot as usual, I launched chipwhiperer to continue working on one of the notebooks, but when I tried to plot with the usual code:

%matplotlib notebook
import matplotlib.pyplot as plt
trace = scope.get_last_trace()
plt.plot(trace)
plt.show()

the execution failed with Javascript Error: IPython is not defined which I don’t understand why is the error being displayed today when yesterday I was running the same notebook without any plotting problem…

I checked the versions running and jupyter shows Python 3.12.9 and IPython 9.0.2, I also check that I had installed ipympl

Did some research and looks like ‘%matplotlib notebook’ is no longer valid, and must be replaced by ‘%matplotlib widget’ but I had problems making it display several captures, when I plot another capture in other cell, it prints the new capture in all the cells, not only in the working one.

As the problem look to be with matplotlib and last week I was trying the H-Probe notebook, I remebered that this one is using holoviews by calling the “Helper_Scripts/plot.ipynb” to have the ‘real time’ plot but, to my desperation that one also failed: only when the cell finfish the execution is when the graph starts to display all the traces at speed of ligth so you only really see the last trace…
I imediatley went to the H-Probe notebook that two days ago was working and I wasn’t able to plot the realtime capture in this one neihter

I though that maybe my pc got in some kind of conflict so I took another pc and did a clean install of chipwhiperer 6 but the problem is still there…

Does anyone know how I can make the plots work again, I need specially to be able to see the capture being done on realtime, as the for placing the H-Probes in place is mandatory to have the ‘realtime view’ working as is the only way one have to know if is in the right spot…

Sorry about that, I forgot to include matplotlib in the installer as we don’t really use it (mostly in the intro labs). If you want, running !pip install matplotlib should fix it.

thanks Alex, it’s working again!!!