https://github.com/luojiaaoo/dash-favicon-plugin
Set favicon plugin for Dash applications using Dash Hooks.
https://github.com/luojiaaoo/dash-favicon-plugin
dash ploty
Last synced: 2 months ago
JSON representation
Set favicon plugin for Dash applications using Dash Hooks.
- Host: GitHub
- URL: https://github.com/luojiaaoo/dash-favicon-plugin
- Owner: luojiaaoo
- License: mit
- Created: 2025-07-21T03:39:41.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-22T08:54:03.000Z (11 months ago)
- Last Synced: 2026-01-08T03:13:19.619Z (5 months ago)
- Topics: dash, ploty
- Language: Python
- Homepage: https://pypi.org/project/dash-favicon-plugin/
- Size: 12.7 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dash-favicon-plugin
[](https://github.com/luojiaaoo/dash-favicon-plugin/blob/main/LICENSE)
[](https://pypi.org/project/dash-favicon-plugin/)
[](https://github.com/astral-sh/ruff)
English | [简体中文](./README-zh_CN.md)
Set favicon plugin for Dash applications using Dash Hooks.
## Installation
```bash
pip install dash-favicon-plugin
```
## Usage
```python
from 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...
```
## Example
Run the included example:
```bash
python example.py
```
## API Reference
### `setup_favicon_plugin()`
This function enables the favicon feature for your Dash application.
| Parameter | Type | Default | Description |
| --------- | ----- | ------- | ------------------------------------------------------------ |
| `favicon` | `str` | `-` | `pathname of favicon, supporting svg, png, ico, gif formats.` |