Please clarify how you installed FEniCS on Colab.
If you used FEM on Colab, I purposely disabled ufl because of Announcement: ufl_legacy and legacy dolfin, so you must ufl_legacy instead of ufl.
Please clarify how you installed FEniCS on Colab.
If you used FEM on Colab, I purposely disabled ufl because of Announcement: ufl_legacy and legacy dolfin, so you must ufl_legacy instead of ufl.