I faced the same problem, just restart your jupyter notebook and run again. it should solve the problem.
For context, my machine is an M2 Pro