code: def list():
      
  
      running_list = []
      parser = argparse.ArgumentParser()
      parser.add_argument('--logdir')
      parser.add_argument('--port')
      for p in psutil.process_iter():
        if p.name() != 'tensorboard' or p.status() == psutil.STATUS_ZOMBIE:
          continue
        cmd_args = p.cmdline()
        del cmd_args[0:2]  # remove 'python' and 'tensorboard'
        args = parser.parse_args(cmd_args)
        running_list.append({'pid': p.pid, 'logdir': args.logdir, 'port': args.port})
      return pd.DataFrame(running_list)
docs: List running TensorBoard instances.