def scheme_svg_thumbnail(scheme_file):
 from .. import scheme
 from ..canvas import scene
 from ..registry import global_registry
 scheme = scheme.Scheme()
 errors = []
 scheme_load(scheme, scheme_file, error_handler=errors.append)
 tmp_scene = scene.CanvasScene()
 tmp_scene.set_channel_names_visible(False)
 tmp_scene.set_registry(global_registry())
 tmp_scene.set_scheme(scheme)
 tmp_scene.anchor_layout().activate()
 svg = scene.grab_svg(tmp_scene)
 tmp_scene.clear()
 tmp_scene.deleteLater()
 return svg

def scheme_svg_thumbnail ( scheme_file ) : from . . import scheme from . . canvas import scene from . . registry import global_registry scheme = scheme . Scheme ( ) errors = [ ] scheme_load ( scheme , scheme_file , error_handler = errors . append ) tmp_scene = scene . CanvasScene ( ) tmp_scene . set_channel_names_visible ( False ) tmp_scene . set_registry ( global_registry ( ) ) tmp_scene . set_scheme ( scheme ) tmp_scene . anchor_layout ( ) . activate ( ) svg = scene . grab_svg ( tmp_scene ) tmp_scene . clear ( ) tmp_scene . deleteLater ( ) return svg
load the scheme scheme from a file and return its svg image representation .