class_docstr: WSGI server for notebook environments.
class_docstr_tok: ["WSGI","server","for","notebook","environments","."]
docstr: Initialize the WSGI server.
  
  Args:
    wsgi_app: WSGI pep-333 application to run.
    host: Host to run on, defaults to 'localhost'.
    port: Port to run on. If not specified, then an unused one will be picked.
docstr_tok: ["Initialize","the","WSGI","server",".","Args",":","wsgi_app",":","WSGI","pep-333","application","to","run",".","host",":","Host","to","run","on",",","defaults","to","'localhost","'",".","port",":","Port","to","run","on",".","If","not","specified",",","then","an","unused","one","will","be","picked","."]
code: def __init__(
      self,
      wsgi_app,
      host: str = "localhost",
      port: Optional[int] = None,
      **unused_kw,
  ):
      """Initialize the WSGI server.
  
      Args:
        wsgi_app: WSGI pep-333 application to run.
        host: Host to run on, defaults to 'localhost'.
        port: Port to run on. If not specified, then an unused one will be picked.
      """
      self._app = wsgi_app
      self._host = host
      self._port = port
      self._server_thread = None
      self.can_act_as_model_server = False
  
imports: import socket
  import threading
  from typing import Optional
  from wsgiref import validate
  import wsgiref.simple_server
  from absl import logging
  import portpicker
  import termcolor
  from werkzeug import serving
label_desc: Use image node_id 1 to create a new NotebookWsgiServer object from inherited base classes: object with example: obj = NotebookWsgiServer(wsgi_app, host, port)