code: def in_jupyter():
      try:
          ip = get_ipython()  # noqa
  
          return ip.has_trait("kernel")
      except NameError:
          return False
  
file_path: deck.gl/bindings/pydeck/pydeck/io/html.py
imports: import html
  import os
  from os.path import realpath, join, dirname
  import sys
  import time
  import warnings
  import webbrowser
  import jinja2
  from ..frontend_semver import DECKGL_SEMVER
label_desc: Use image node_id 1 for calling a global function with example usage: in_jupyter() and returns: ip, False