code: def run_from_ipython():
      try:
          __IPYTHON__
          return True
      except NameError:
          return False
  
imports: import plotly.offline
label_desc: Use image node_id 1 for calling a global function with example usage: run_from_ipython() and returns: True, False