ChipWhisperer Setup :Javascript Error: IPython is not defined

Hello there! I’m trying to set up my environment and I’ve been facing this error. Could anyone please tell me how to fix it?

I recently ran into the same issue after manually installing a fresh version of ChipWhisperer from GitHub in an Ubuntu VM. It seems that notebook version 7 is based on JupyterLab and does not support the “%matplotlib notebook” magic to enable interactive plots.
I was able to ‘fix’ this by installing ipympl into my cw pyenv

(cw) vm:~/chipwhisperer$ pip install ipympl

and replacing

%matplotlib notebook

with

%matplotlib widget

in the Jupyter notebook code.

Thanks for the fix! We generally try to use holoviews everywhere, but there’s still a few places where matplotlib is kicking around.

The above doesn’t work for me, anyone else find a solution? I just get a different error if I try to change it to widget after installing ipympl:

Warning: Cannot change to a different GUI toolkit: widget. Using notebook instead.
Javascript Error: IPython is not defined