English | 简体中文
Console message filtering plugin for Dash applications using Dash Hooks. This plugin allows you to filter specific error messages in the browser console.
pip install dash-console-filter-pluginimport dash
# Import the console filter plugin
from dash_console_filter_plugin import setup_console_filter_plugin
# Enable the console filter plugin for the current app
setup_console_filter_plugin(keywords=["test warning message"])
app = dash.Dash(__name__)
# Rest of your app code...Run the included example:
python example.pyThis function enables the console message filtering feature for your Dash application.
| Parameter | Type | Default | Description |
|---|---|---|---|
keywords |
List[str] | None | List of keywords to filter, messages containing any of these keywords in the console of the browser will be filtered. |
