Draw_mpl error - no attribute found

I am following the tutorial for backpropagation but getting an error when I try to run this block of code

I looked into the pennylane documentation and there is a draw_mpl so I dont understand why I am getting this error

Hi @Kasia_W, what version of PennyLane are you running? You can check this by printing qml.about().

The draw_mpl function was added in the latest version (v0.20), so you may need to upgrade via

pip install pennylane --upgrade
1 Like