def get_engine(self, name=None):
        """Retrieves an engine by name."""
        engine = self._engines.get(name)
        if not engine:
            raise PapermillException("No engine named '{}' found".format(name))
        return engine
def get_engine ( self , name = None ) : engine = self . _engines . get ( name ) if not engine : raise PapermillException ( "No engine named '{}' found" . format ( name ) ) return engine
Retrieves an engine by name.