Error in Fenicsx Tutorial?

The tutorial is almost up to date with main, which is at 0.4.2.0. If you want to use the stable release, consider the notebooks at: GitHub - jorgensd/dolfinx-tutorial at v0.4.0