(self, request=None, as_instance=False)
Get the plugin widget.

        :param django.http.HttpRequest request:
        :param bool as_instance:
        :return mixed: Subclass of ``dash.base.BaseDashboardPluginWidget`` or
            instance of subclassed ``dash.base.BaseDashboardPluginWidget``
            object.
Get the plugin widget.
Get the plugin widget .
def get_widget(self, request=None, as_instance=False):
        """Get the plugin widget.

        :param django.http.HttpRequest request:
        :param bool as_instance:
        :return mixed: Subclass of ``dash.base.BaseDashboardPluginWidget`` or
            instance of subclassed ``dash.base.BaseDashboardPluginWidget``
            object.
        """
        widget_cls = plugin_widget_registry.get(
            PluginWidgetRegistry.namify(self.layout.uid,
                                        self.placeholder.uid,
                                        self.uid)
            )

        if not as_instance:
            return widget_cls
        elif widget_cls:
            widget = widget_cls(self)
            return widget
def get_widget ( self , request = None , as_instance = False ) : widget_cls = plugin_widget_registry . get ( PluginWidgetRegistry . namify ( self . layout . uid , self . placeholder . uid , self . uid ) ) if not as_instance : return widget_cls elif widget_cls : widget = widget_cls ( self ) return widget