def get_data_files():
 data_files = []
 ntrim = len((here + os.path.sep))
 for (d, dirs, filenames) in os.walk(share_jupyter):
  data_files.append((d[ntrim:], [pjoin(d, f) for f in filenames]))
 return data_files

def get_data_files ( ) : data_files = [ ] ntrim = len ( ( here + os . path . sep ) ) for ( d , dirs , filenames ) in os . walk ( share_jupyter ) : data_files . append ( ( d [ ntrim : ] , [ pjoin ( d , f ) for f in filenames ] ) ) return data_files
walk up until we find share/jupyter/hub .