Add ability to set document title shown in browser tab
See original GitHub issueProblem
The browser tab currently shows filename - Streamlit
for Streamlit apps. Ideally, the user would be able to set this so
- It’s more flexible, including the option not to have Streamlit in the browser tab title for the app
- It is decoupled from the name of the file being run
Solution
I’d find it a slight improvement if it is copied from anything written in st.Title
. That’s still not ideal, since we would frequently like to use a longer title at the top of the document than in the browser tab… so these should also ideally be decoupled.
There may be a better solution, but I’d be quite happy if I could run a method st.AppName
.
Not sure if this belongs in a separate request, but I’d love to be able to set my favicon too.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to set the title for the new browser tab?
Whenever you want to change the title for this page, you'd use JavaScript as such: window.open("", "theNewWindow").document.title = "New Page ...
Read more >Changing the Title Displayed in the Browser Tab
To change the browser title: · Click the Pages icon on the left side of the Editor. · Click the Show More icon...
Read more >How do I change the title shown on the browser tab in AM 5 ...
The purpose of this article is to provide assistance on changing the title shown on the browser tab in AM/OpenAM.
Read more >"Tab Title" should show PDFs Title Text of the file if set
The upcomming version of Edge browser should show PDFs document title, if set, instead of only showing the PDFs file name.
Read more >The Document Title element - HTML - MDN Web Docs - Mozilla
The <title> HTML element defines the document's title that is shown in a browser's title bar or a page's tab. It only contains...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Moving this to our backlog, this would be implemented as an experimental feature. Title:
st.beta_set_page_title("foo")
Favicon:st.beta_set_favicon(exactly same data format as st.image)
Hey @dansbecker ,
Thanks for the excellent enhancement suggestion. I think either of your solution approaches could work and wouldn’t be too hard. We’ll discuss in the engineering standup. Cheers!