AttributeError: module 'dolfinx.plot' has no attribute 'create_vtk_mesh'

Hi dear all,

Using DOLFINx version: 0.7.2 to reproduce the solution of https://fenicsproject.org/olddocs/dolfin/latest/python/demos/cahn-hilliard/demo_cahn-hilliard.py.html, I got the following error:

DOLFINx version: 0.7.2 based on GIT commit: 4604094c8c3e6dbf6034b25df5ee3ccd1ec2d3b3 of GitHub - FEniCS/dolfinx: Next generation FEniCS problem solving environment
Traceback (most recent call last):
File “/home/mamadou/Downloads/fawzoulazim2023_december2023_4.py”, line 247, in
topology, cell_types, x = plot.create_vtk_mesh(V0)

AttributeError: module ‘dolfinx.plot’ has no attribute ‘create_vtk_mesh’

Please note that it worked fine with the old version dolfinx 0.6.0.

Thank you for your time and patience.

Use dolfinx.plot.vtk_mesh, as explained in Changelog — FEniCSx tutorial