English | 简体中文
Set favicon plugin for Dash applications using Dash Hooks.
pip install dash-favicon-pluginfrom dash import Dash
# Import the favicon plugin
from dash_favicon_plugin import setup_favicon_plugin
# Enable the favicon plugin for the current app
setup_favicon_plugin(favicon=r"/assets/favicon.png")
app = dash.Dash(__name__)
# Rest of your app code...Run the included example:
python example.pyThis function enables the favicon feature for your Dash application.
| Parameter | Type | Default | Description |
|---|---|---|---|
favicon |
str |
- |
pathname of favicon, supporting svg, png, ico, gif formats. |