def show()

in src/stepfunctions/workflow/widgets/graph.py [0:0]


    def show(self, portrait=True):
        if __IPYTHON_IMPORTED__ is False:
            logger.error("IPython failed to import. Widgets/graphs cannot be visualized.")
            return ""
        if portrait is False:
            self.layout = 'LR'
        else:
            self.layout = 'TB'

        return HTML(self.template.substitute({
            'element_id': self.element_id,
            'definition': self.json_definition,
            'layout': self.layout,
            'css': CSS_URL,
            'jslib': JSLIB_URL,
            'graph_legend_template': ""
        }))