#NEWLINE# def display( self ) : #NEWLINE# #INDENT# 'Create a temp file and render the dot in it.' #NEWLINE# graph = self . to_dot ( ) #NEWLINE# if ( not self ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# tf = tempfile . NamedTemporaryFile ( mode = 'w+b' , prefix = 'dot_' , suffix = '.svg' , delete = False ) #NEWLINE# graph . draw ( tf . name , format = 'svg' , prog = 'dot' ) #NEWLINE# logger . info ( 'Workflow execution traced: %s' , tf . name ) #NEWLINE# webbrowser . open ( tf . name )