()
return visualization_classes
Import visualizations classes dynamically
Import visualizations classes dynamically
Import visualizations classes dynamically
def _get_visualization_classes():
    """Import visualizations classes dynamically
    """
    visualization_attr = vars(import_module('picasso.visualizations'))
    visualization_submodules = [
        visualization_attr[x]
        for x in visualization_attr
        if isinstance(visualization_attr[x], ModuleType)]
    visualization_classes = []
    for submodule in visualization_submodules:
        attrs = vars(submodule)
        for attr_name in attrs:
            attr = attrs[attr_name]
            if (inspect.isclass(attr)
                and issubclass(attr, BaseVisualization)
                    and attr is not BaseVisualization):
                visualization_classes.append(attr)
    return visualization_classes
def _get_visualization_classes ( ) : visualization_attr = vars ( import_module ( 'picasso.visualizations' ) ) visualization_submodules = [ visualization_attr [ x ] for x in visualization_attr if isinstance ( visualization_attr [ x ] , ModuleType ) ] visualization_classes = [ ] for submodule in visualization_submodules : attrs = vars ( submodule ) for attr_name in attrs : attr = attrs [ attr_name ] if ( inspect . isclass ( attr ) and issubclass ( attr , BaseVisualization ) and attr is not BaseVisualization ) : visualization_classes . append ( attr ) return visualization_classes