Error running python script 'No protocol specified, couldn't connect to X server'

I have developed smalls samples using Tkinter and at least one of our community members actively uses it. Check the following thread: Containers not running in TorizonCore with evaluation containers for iMX8M-Plus - #23 by leon.tx