__isguirunning__
- :
tf =__isguirunning__()¶ Return true when the current session is running inside the graphical interface.
The result is false for the plain command-line driver and for any embedded or non-interactive use of the interpreter.