简体   繁体   中英

How to change the website Tab name in Dash-Plotly using python

I Want to change the name and icon which are displayed on the webpage tab which is developed using Dash-Plotly with python.

标签

any help will be appreciated.

This should do the trick:

app = dash.Dash(__name__)
app.title = 'This is my App'
app._favicon = ("path_to_folder/your_icon.ico")
.....
.....
if __name__ == '__main__':
    app.run_server(debug=True)

Have the same problem, solved with favicon resolution 48x48 pixels, and folder name 'assets':

from dash import Dash
import os

app = Dash(__name__)
app.title = 'Your title'
app._favicon = (os.path.join('assets', 'your_icon.ico'))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM