class_docstr: Class for running TensorBoard.
  
  Fields:
    plugin_loaders: Set from plugins passed to constructor.
    assets_zip_provider: Set by constructor.
    server_class: Set by constructor.
    flags: An argparse.Namespace set by the configure() method.
    cache_key: As `manager.cache_key`; set by the configure() method.
class_docstr_tok: ["Class","for","running","TensorBoard",".","Fields",":","plugin_loaders",":","Set","from","plugins","passed","to","constructor",".","assets_zip_provider",":","Set","by","constructor",".","server_class",":","Set","by","constructor",".","flags",":","An","argparse.Namespace","set","by","the","configure","(",")","method",".","cache_key",":","As","`","manager.cache_key","`",";","set","by","the","configure","(",")","method","."]
docstr: Creates new instance.
  
  Args:
    plugins: A list of TensorBoard plugins to load, as TBPlugin classes or
      TBLoader instances or classes. If not specified, defaults to first-party
      plugins.
    assets_zip_provider: A function that provides a zip file containing
      assets to the application. If `None`, the default TensorBoard web
      assets will be used. (If building from source, your binary must
      explicitly depend on `//tensorboard:assets_lib` if you pass `None`.)
    server_class: An optional factory for a `TensorBoardServer` to use
      for serving the TensorBoard WSGI app. If provided, its callable
      signature should match that of `TensorBoardServer.__init__`.
  
  :type plugins:
    list[
      base_plugin.TBLoader | Type[base_plugin.TBLoader] |
      Type[base_plugin.TBPlugin]
    ]
docstr_tok: ["Creates","new","instance",".","Args",":","plugins",":","A","list","of","TensorBoard","plugins","to","load",",","as","TBPlugin","classes","or","TBLoader","instances","or","classes",".","If","not","specified",",","defaults","to","first-party","plugins",".","assets_zip_provider",":","A","function","that","provides","a","zip","file","containing","assets","to","the","application",".","If","`","None","`",",","the","default","TensorBoard","web","assets","will","be","used",".","(","If","building","from","source",",","your","binary","must","explicitly","depend","on","`","\/\/tensorboard",":","assets_lib","`","if","you","pass","`","None","`",".",")","server_class",":","An","optional","factory","for","a","`","TensorBoardServer","`","to","use","for","serving","the","TensorBoard","WSGI","app",".","If","provided",",","its","callable","signature","should","match","that","of","`","TensorBoardServer.__init__","`",".",":","type","plugins",":","list","[","base_plugin.TBLoader","|","Type","[","base_plugin.TBLoader","]","|","Type","[","base_plugin.TBPlugin","]","]"]
code: def __init__(
      self,
      plugins=None,
      assets_zip_provider=None,
      server_class=None,
      subcommands=None,
  ):
      """Creates new instance.
  
      Args:
        plugins: A list of TensorBoard plugins to load, as TBPlugin classes or
          TBLoader instances or classes. If not specified, defaults to first-party
          plugins.
        assets_zip_provider: A function that provides a zip file containing
          assets to the application. If `None`, the default TensorBoard web
          assets will be used. (If building from source, your binary must
          explicitly depend on `//tensorboard:assets_lib` if you pass `None`.)
        server_class: An optional factory for a `TensorBoardServer` to use
          for serving the TensorBoard WSGI app. If provided, its callable
          signature should match that of `TensorBoardServer.__init__`.
  
      :type plugins:
        list[
          base_plugin.TBLoader | Type[base_plugin.TBLoader] |
          Type[base_plugin.TBPlugin]
        ]
      """
      if plugins is None:
          from tensorboard import default
  
          plugins = default.get_plugins()
      if assets_zip_provider is None:
          try:
              from tensorboard import assets
          except ImportError as e:
              # `tensorboard.assets` is not a strict Bazel dep; clients are
              # required to either depend on `//tensorboard:assets_lib` or
              # pass a valid assets provider.
              raise ImportError(
                  "No `assets_zip_provider` given, but `tensorboard.assets` "
                  "could not be imported to resolve defaults"
              ) from e
          assets_zip_provider = assets.get_default_assets_zip_provider()
      if server_class is None:
          server_class = create_port_scanning_werkzeug_server
      if subcommands is None:
          subcommands = []
      self.plugin_loaders = [
          application.make_plugin_loader(p) for p in plugins
      ]
      self.assets_zip_provider = assets_zip_provider
      self.server_class = server_class
      self.subcommands = {}
      for subcommand in subcommands:
          name = subcommand.name()
          if name in self.subcommands or name == _SERVE_SUBCOMMAND_NAME:
              raise ValueError("Duplicate subcommand name: %r" % name)
          self.subcommands[name] = subcommand
      self.flags = None
  
imports: from abc import ABCMeta
  from abc import abstractmethod
  import argparse
  import atexit
  from collections import defaultdict
  import errno
  import logging
  import mimetypes
  import os
  import shlex
  import signal
  import socket
  import sys
  import threading
  import time
  import urllib.parse
  from absl import flags
  from absl.flags import argparse_flags
  from werkzeug import serving
  from tensorboard import manager
  from tensorboard import version
  from tensorboard.backend import application
  from tensorboard.backend.event_processing import data_ingester
  from tensorboard.backend.event_processing import event_file_inspector
  from tensorboard.data import server_ingester
  from tensorboard.plugins.core import core_plugin
  from tensorboard.util import tb_logging
label_desc: Use image node_id 1 to create a new TensorBoard object  with example: obj = TensorBoard(plugins, assets_zip_provider, server_class, subcommands)