def activatePluginByName(self,name,category="Default"):
        """
        Activate a plugin corresponding to a given category + name.
        """
        pta_item = self.getPluginByName(name,category)
        if pta_item is not None:
            plugin_to_activate = pta_item.plugin_object
            if plugin_to_activate is not None:
                log.debug("Activating plugin: %s.%s"% (category,name))
                plugin_to_activate.activate()
                return plugin_to_activate            
        return None
dataset/ETHPy150Open datamachine/telex/telex/plugin/PluginManager.py/PluginManager.activatePluginByName/original