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

python3 is 3.12.3

Hello community,

I am a new user and try to do the Setup Test (ChipWhisperer Setup Test)

I am running this from Windows env. Any leads on how to resolve this ?

Thanks,
Trinath

and I get same error running it from Linux Env as well.

However it starts to generate plot when “%matplotlib notebook” is replaced with “%matplotlib inline”

Hi everyone.
The best solution to solve this and other issues, is downgrading to version 5.7.0.
Jupyter changed a lot of things, and so did the other modules, probably making something along the way conflict.

Update: the %matplotlib notebook magic does not work anymore for ChipWhisperer notebooks, instead Python’s chipwhisperer library included and installed during initial setup can be used to plot interactive graphs.

Example:

import chipwhisperer as cw
cw.plot([1, 2, 2, 4, 5])

Thanks to NewAE staff for being much cooperative and patient.

Bad advice! If you run into this or other issues, post about it here and we’ll do our best to help you.

First make sure you’re installing our latest release as per our instructions here.

Be sure to tell us your OS, version.