class_docstr: WSGI server for notebook environments.
class_docstr_tok: ["WSGI","server","for","notebook","environments","."]
docstr: Stops the server thread.
docstr_tok: ["Stops","the","server","thread","."]
code: def stop(self):
      """Stops the server thread."""
      if self._server_thread is None:
          return
      self._stopping.set()
      self._server_thread = None
      self._stopped.wait()
  
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 4 for calling the NotebookWsgiServer obj's underlying member method code with example usage: obj.stop() without return types