class_docstr: Interact with dash apps inside jupyter notebooks.
class_docstr_tok: ["Interact","with","dash","apps","inside","jupyter","notebooks","."]
code: def _display_in_colab(dashboard_url, port, mode, width, height):
      # noinspection PyUnresolvedReferences
      from google.colab import (
          output,
      )  # pylint: disable=E0401,E0611,C0415
  
      if mode == "inline":
          output.serve_kernel_port_as_iframe(
              port, width=width, height=height
          )
      elif mode == "external":
          # FIXME there is a 403 on this, maybe it's updated?
          # Display a hyperlink that can be clicked to open Dashboard
          print("Dash app running on:")
          output.serve_kernel_port_as_window(
              port, anchor_text=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 4 for calling the JupyterDash obj's underlying member method code with example usage: obj._display_in_colab(dashboard_url, port, mode, width, height) without return types