import dolfinx
print(f"You have DOLFINx {dolfinx.__version__} installed, "
"based on commit \nhttps://github.com/FEniCS/dolfinx/commit/"
f"{dolfinx.common.git_commit_hash}")
You have DOLFINx 0.5.0 installed, based on commit https://github.com/FEniCS/dolfinx/commit/2aaf3b20dbaedcbd3925a9640c3859deec563e02
from dolfin import *
import dolfinx
from mpi4py import MPI
mesh = dolfinx.mesh.create_unit_square(MPI.COMM_WORLD, 10, 10)
import dolfinx.plot
import pyvista
topology, cells, geometry = dolfinx.plot.create_vtk_mesh(mesh)
grid = pyvista.UnstructuredGrid(topology, cells, geometry)
plotter = pyvista.Plotter(window_size=(600, 600))
renderer = plotter.add_mesh(grid, show_edges=True)