class_docstr: Interact with dash apps inside jupyter notebooks.
class_docstr_tok: ["Interact","with","dash","apps","inside","jupyter","notebooks","."]
code: def _display_in_jupyter(dashboard_url, port, mode, width, height):
      if mode == "inline":
          display(IFrame(dashboard_url, width, height))
      elif mode in ("external", "tab"):
          # Display a hyperlink that can be clicked to open Dashboard
          print(f"Dash app running on {dashboard_url}")
          if mode == "tab":
              display(Javascript(f"window.open('{dashboard_url}')"))
      elif mode == "jupyterlab":
          # Update front-end extension
          # FIXME valid only in jupyterlab but accepted in regular notebooks show nothing.
          _dash_comm.send(
              {
                  "type": "show",
                  "port": port,
                  "url": dashboard_url,
              }
          )
  
imports: import asyncio
  import io
  import inspect
  import logging
  import os
  import queue
  import uuid
  import sys
  import threading
  import time
  import traceback
  from typing_extensions import Literal
  from werkzeug.serving import make_server
label_desc: Use image node_id 5 for calling the JupyterDash obj's underlying member method code with example usage: obj._display_in_jupyter(dashboard_url, port, mode, width, height) without return types