code: def show(
      data,
      ip="127.0.0.1",
      port=8888,
      n_retries=50,
      local=True,
      open_browser=True,
      http_server=None,
      **kwargs,
  ):
      """Starts a local webserver and opens the visualization in a browser.
  
      Parameters
      ----------
      data : PreparedData, created using :func:`prepare`
          The data for the visualization.
      ip : string, default = '127.0.0.1'
          the ip address used for the local server
      port : int, default = 8888
          the port number to use for the local server.  If already in use,
          a nearby open port will be found (see n_retries)
      n_retries : int, default = 50
          the maximum number of ports to try when locating an empty port.
      local : bool, default = True
          if True, use the local d3 & LDAvis javascript versions, within the
          js/ folder.  If False, use the standard urls.
      open_browser : bool (optional)
          if True (default), then open a web browser to the given HTML
      http_server : class (optional)
          optionally specify an HTTPServer class to use for showing the
          visualization. The default is Python's basic HTTPServer.
      **kwargs :
          additional keyword arguments are passed through to :func:`prepared_data_to_html`
  
      See Also
      --------
      :func:`display` : embed visualization within the IPython notebook
      :func:`enable_notebook` : automatically embed visualizations in IPython notebook
      """
      files = None
      if local:
          kwargs["ldavis_url"] = urls.LDAVIS_URL
          kwargs["d3_url"] = urls.D3_URL
          kwargs["ldavis_css_url"] = urls.LDAVIS_CSS_URL
          files = {
              "/LDAvis.js": [
                  "text/javascript",
                  open(urls.LDAVIS_LOCAL, "r").read(),
              ],
              "/LDAvis.css": [
                  "text/css",
                  open(urls.LDAVIS_CSS_URL, "r").read(),
              ],
              "/d3.js": [
                  "text/javascript",
                  open(urls.D3_URL, "r").read(),
              ],
          }
      html = prepared_data_to_html(data, **kwargs)
      serve(
          html,
          ip=ip,
          port=port,
          n_retries=n_retries,
          files=files,
          open_browser=open_browser,
          http_server=http_server,
      )
  
file_path: pyLDAvis/notebooks/pyLDAvis/_display.py
imports: import warnings
  import random
  import json
  import jinja2
  import re
  from pyLDAvis._server import serve
  from pyLDAvis.utils import get_id, write_ipynb_local_js, NumPyEncoder
  from pyLDAvis._prepare import PreparedData
  import pyLDAvis.urls
label_desc: Use image node_id 3 for calling a global function with example usage: show(data, ip, port, n_retries, local, open_browser, http_server) without return types