code: def display_notebook(host, port, display, proxy_url=None):
      """Display Aim instance in an ipython context output frame."""
      import IPython.display
  
      url = "{}:{}{}".format(host, port, _NOTEBOOK_PATH_POSTFIX)
  
      # @TODO add warning if proxy_url is not defined
      if proxy_url:
          # jupyter-server-proxy supports absolute paths by using it with /proxy/absolute/<port> path
          url = "{}{}{}{}/".format(
              proxy_url,
              "/proxy/absolute/",
              port,
              _SAGE_MAKER_NOTEBOOK_PATH_POSTFIX,
          )
          print(url)
  
      shell = """
                <iframe id="aim" width="100%" height="800" frameborder="0" src={}>
                </iframe>
              """.format(
          url
      )
  
      iframe = IPython.display.HTML(shell)
      display.update(iframe)
  
file_path: aim/aim/ext/notebook/notebook.py
imports: import shlex
  from aim.cli.configs import VERSION_NAME, UP_NAME
  import aim.cli.manager.manager
label_desc: Use image node_id 4 for calling a global function with example usage: display_notebook(host, port, display, proxy_url) without return types