docstr: This TensorBoard component synchronizes the log directory of an experiment and starts up the server.
  
  Args:
      log_dir: The path to the directory where the TensorBoard log-files will appear.
      sync_every_n_seconds: How often to sync the log directory (given as an argument to the run method)
docstr_tok: ["This","TensorBoard","component","synchronizes","the","log","directory","of","an","experiment","and","starts","up","the","server",".","Args",":","log_dir",":","The","path","to","the","directory","where","the","TensorBoard","log-files","will","appear",".","sync_every_n_seconds",":","How","often","to","sync","the","log","directory","(","given","as","an","argument","to","the","run","method",")"]
code: def __init__(
      self, log_dir: Path, sync_every_n_seconds: int = 5
  ) -> None:
      """This TensorBoard component synchronizes the log directory of an experiment and starts up the server.
  
      Args:
          log_dir: The path to the directory where the TensorBoard log-files will appear.
          sync_every_n_seconds: How often to sync the log directory (given as an argument to the run method)
  
      """
      super().__init__()
      self.worker = TensorBoardWorker(
          log_dir=log_dir, sync_every_n_seconds=sync_every_n_seconds
      )
  
file_path: pytorch-lightning/src/lightning/app/cli/pl-app-template/core/components/logger/tensorboard.py
imports: import subprocess
  import time
  from typing import Dict, List
  from lightning.app import BuildConfig, LightningFlow, LightningWork
  from lightning.app.storage.path import Path
label_desc: Use image node_id 1 to create a new TensorBoard object from inherited base classes: LightningFlow with example: obj = TensorBoard(log_dir, sync_every_n_seconds)