def _plots_first(fname):
 if (not (fname.startswith('plot') and fname.endswith('.py'))):
  return ('zz' + fname)
 return fname

def _plots_first ( fname ) : if ( not ( fname . startswith ( 'plot' ) and fname . endswith ( '.py' ) ) ) : return ( 'zz' + fname ) return fname
decorate filename so that examples with plots are displayed first .