def output_file(suppress_warnings=True): if suppress_warnings: warnings.simplefilter("ignore", BokehUserWarning) bk.output_file(os.path.join(tempfile.gettempdir(), str(uuid.uuid4()) + ".html"))