original_docstring: Submit a set of experiments
  
      Will display the set of proposed experiments and prompt the user
      if they should be run or not.
  
      Args:
          experiment_name: the argo workflow is tagged with this and the wandb
              jobs are tagged with ``experiment/{experiment_name}``
  
      
docstring: Submit a set of experiments
  Will display the set of proposed experiments and prompt the user
  if they should be run or not.
docstring_tokens: Submit a set of experiments Will display the set of proposed experiments and prompt the user if they should be run or not .
code: def submit_jobs(jobs: Sequence[ArgoJob], experiment_name: str):
      """Submit a set of experiments
  
      Will display the set of proposed experiments and prompt the user
      if they should be run or not.
  
      Args:
          experiment_name: the argo workflow is tagged with this and the wandb
              jobs are tagged with ``experiment/{experiment_name}``
  
      """
      print("The following experiments are queued:")
      for job in jobs:
          print(job)
  
      if sys.stdin.isatty():
          ch = input("Submit? (Y/n,i)")
      else:
          ch = "y"
      if ch == "n":
          sys.exit(1)
      elif ch == "i":
          jobs = [job for job in jobs if _run_job_q(job)]
  
      with open("experiment-logs.txt", "a") as f:
          for job in jobs:
              submit(
                  job,
                  labels={
                      "project": job.project,
                      "experiment": experiment_name,
                      "trial": job.name,
                  },
                  other_parameters={
                      "wandb-tags": f"experiment/{experiment_name}",
                      "wandb-group": experiment_name,
                  },
              )
              print(job, file=f)
              print(job)
          print(
              f"to monitor experiments: argo list -lexperiment={experiment_name}", file=f
          )
      print(f"to monitor experiments: argo list -lexperiment={experiment_name}")
code_tokens: def submit_jobs ( jobs : Sequence [ ArgoJob ] , experiment_name : str ) : print ( "The following experiments are queued:" ) for job in jobs : print ( job ) if sys . stdin . isatty ( ) : ch = input ( "Submit? (Y/n,i)" ) else : ch = "y" if ch == "n" : sys . exit ( 1 ) elif ch == "i" : jobs = [ job for job in jobs if _run_job_q ( job ) ] with open ( "experiment-logs.txt" , "a" ) as f : for job in jobs : submit ( job , labels = { "project" : job . project , "experiment" : experiment_name , "trial" : job . name , } , other_parameters = { "wandb-tags" : f"experiment/{experiment_name}" , "wandb-group" : experiment_name , } , ) print ( job , file = f ) print ( job ) print ( f"to monitor experiments: argo list -lexperiment={experiment_name}" , file = f ) print ( f"to monitor experiments: argo list -lexperiment={experiment_name}" )
short_docstring: Submit a set of experiments
  Will display the set of proposed experiments and prompt the user
  if they should be run or not.
short_docstring_tokens: Submit a set of experiments Will display the set of proposed experiments and prompt the user if they should be run or not .
comment: """Submit a set of experiments
  
      Will display the set of proposed experiments and prompt the user
      if they should be run or not.
  
      Args:
          experiment_name: the argo workflow is tagged with this and the wandb
              jobs are tagged with ``experiment/{experiment_name}``
  
      """