def print_gtk(x, start_viewer=True):
 from sympy.utilities.mathml import c2p
 tmp = tempfile.mktemp()
 with open(tmp, 'wb') as file:
  file.write(c2p(mathml(x), simple=True))
 if start_viewer:
  os.system(('mathmlviewer ' + tmp))

def print_gtk ( x , start_viewer = True ) : from sympy . utilities . mathml import c2p tmp = tempfile . mktemp ( ) with open ( tmp , 'wb' ) as file : file . write ( c2p ( mathml ( x ) , simple = True ) ) if start_viewer : os . system ( ( 'mathmlviewer ' + tmp ) )
print to gtkmathview .