def do_visualize(self, line):
        """Visualize an ontology - ie wrapper for export command"""

        if not self.current:
            self._help_noontology()
            return

        line = line.split()

        try:
            # from ..viz.builder import action_visualize
            from ..ontodocs.builder import action_visualize
        except:
            self._print("This command requires the ontodocs package: `pip install ontodocs`")
            return

        import webbrowser
        url = action_visualize(args=self.current['file'], fromshell=True)
        if url:
            webbrowser.open(url)
        return
def do_visualize ( self , line ) : if not self . current : self . _help_noontology ( ) return line = line . split ( ) try : from . . ontodocs . builder import action_visualize except : self . _print ( "This command requires the ontodocs package: `pip install ontodocs`" ) return import webbrowser url = action_visualize ( args = self . current [ 'file' ] , fromshell = True ) if url : webbrowser . open ( url ) return
Visualize an ontology - ie wrapper for export command