code: def id_generator(size=15, random_state=None):
      
      chars = list(string.ascii_uppercase + string.digits)
      return ''.join(random_state.choice(chars, size, replace=True))
docs: Helper function to generate random div ids. This is useful for embedding
      HTML into ipython notebooks.