code: def plotly_direct(context, name=None, slug=None, da=None):
      'Direct insertion of a Dash app'
  
      da, app = _locate_daapp(name, slug, da)
  
      view_func = app.locate_endpoint_function()
  
      # Load embedded holder inserted by middleware
      eh = context.request.dpd_content_handler.embedded_holder
      app.set_embedded(eh)
      try:
          resp = view_func()
      finally:
          app.exit_embedded()
  
      return locals(f plotly_direct(context, name=None, slug=None, da=None):
      'Direct insertion of a Dash app'
  
      da, app = _locate_daapp(name, slug, da)
  
      view_func = app.locate_endpoint_function()
  
      # Load embedded holder inserted by middleware
      eh = context.request.dpd_content_handler.embedded_holder
      app.set_embedded(eh)
      try:
          resp = view_func()
      finally:
          app.exit_embedded()
  
      return locals()
docs: Direct insertion of a Dash app