No display name when run ft03_heat.py

Hi Fenics folks here.

recently I try to make a start with fenics. below is what I have done so far.
1 install WSL 2 in window 10 system
2 follow the set up of FEnics under Ubuntu 18.4
3 I can see FEnics version number in bash, so installation seems to correct
4 I download FEnics tutorials on github
5 try to run ft03_heat.py, I encountered error shown in the attachment image. when I try to run other examples, this error persists.

could any one help me with this?

Much appreciated.

Martin

See for instance: python - _tkinter.TclError: no display name and no $DISPLAY environment variable - Stack Overflow

Hi Dokken,

Thanks for your quick help. I will try it and report back, surely hope it will work.

I want to have an up to date source to practice Fenics, books like Automated Solution of Differential Equations by the Finite Element Method. but it is published in 2012, many people say the code are not working with the current Fenics version.
is there any reliable source or books that I can follow without significant debugging effort?
surely I do not want to flood this forum with my error.

thanks

Martin

The Closest thing is: The FEniCSx tutorial — FEniCSx tutorial
using the development version of dolfin, found here: https://github.com/FEniCS/dolfinx

If you want to use the old sources, such as: https://fenicsproject.org/tutorial/
you should install the 2016 version of fenics (as the user interface had changed since then).

Hi dikken

Just tried the method in the link, it works like charm.

Thanks for your help.

Martin