def open_tensorboard(log_dir='<STR_LIT>', port=<NUM_LIT>):
text = "<STR_LIT>" + str(port) + "<STR_LIT>"<EOL>text2 = "<STR_LIT>"<EOL>if not tl.files.exists_or_mkdir(log_dir, verbose=False):<EOL><INDENT>tl.logging.info("<STR_LIT>" % log_dir)<EOL><DEDENT>if _platform == "<STR_LIT>" or _platform == "<STR_LIT>":<EOL><INDENT>raise NotImplementedError()<EOL><DEDENT>elif _platform == "<STR_LIT>":<EOL><INDENT>tl.logging.info('<STR_LIT>' % text)<EOL>subprocess.Popen(<EOL>sys.prefix + "<STR_LIT>" + log_dir + "<STR_LIT>" + str(port), shell=True<EOL>)  <EOL><DEDENT>elif _platform == "<STR_LIT:win32>":<EOL><INDENT>raise NotImplementedError("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>tl.logging.info(_platform + text2)<EOL><DEDENT>
Open Tensorboard.

    Parameters
    ----------
    log_dir : str
        Directory where your tensorboard logs are saved
    port : int
        TensorBoard port you want to open, 6006 is tensorboard default