sorry ignore previous code, this one should work in python to load tensorboard.
def run_tensorboard(logdir_absolute: str, port: int = 6007):
import subprocess
import threading
def launch_tb():
command = [
"tensorboard",
f"--logdir={logdir_absolute}",
f"--port={port}"
]
subprocess.Popen(command)
tb_thread = threading.Thread(target=launch_tb, daemon=True)
tb_thread.start()
print(f"[INFO] TensorBoard started on http://localhost:{port}")
run_tensorboard("your runs folder full path", port=6007)