def view(figure: str): """ Views the dotted chart on the screen Parameters --------------- figure Path to the dotted chart """ if vis_utils.check_visualization_inside_jupyter(): vis_utils.view_image_in_jupyter(figure) else: vis_utils.open_opsystem_image_viewer(figure)
def view(gviz): """ View the diagram Parameters ----------- gviz GraphViz diagram """ if vis_utils.check_visualization_inside_jupyter(): vis_utils.view_image_in_jupyter(gviz.render()) else: return gviz.view(cleanup=True)
def view(figure: str): """ Views the performance spectrum Parameters --------------- figure Path containing the visualization """ if vis_utils.check_visualization_inside_jupyter(): vis_utils.view_image_in_jupyter(figure) else: vis_utils.open_opsystem_image_viewer(figure)
def view(temp_file_name): """ View the graph Parameters ------------ temp_file_name Path to the temporary file hosting the graph """ if vis_utils.check_visualization_inside_jupyter(): vis_utils.view_image_in_jupyter(temp_file_name) else: vis_utils.open_opsystem_image_viewer(temp_file_name)
def view(temp_file_name, parameters=None): """ View the SNA visualization on the screen Parameters ------------- temp_file_name Temporary file name parameters Possible parameters of the algorithm """ if parameters is None: parameters = {} if vis_utils.check_visualization_inside_jupyter(): vis_utils.view_image_in_jupyter(temp_file_name) else: vis_utils.open_opsystem_image_viewer(temp_file_name)
def view(figure): """ View on the screen a figure that has been rendered Parameters ---------- figure figure """ try: filename = figure.name figure = filename except AttributeError: # continue without problems, a proper path has been provided pass if vis_utils.check_visualization_inside_jupyter(): vis_utils.view_image_in_jupyter(figure) else: vis_utils.open_opsystem_image_viewer(figure)