question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ability to set document title shown in browser tab

See original GitHub issue

Problem

The browser tab currently shows filename - Streamlit for Streamlit apps. Ideally, the user would be able to set this so

  1. It’s more flexible, including the option not to have Streamlit in the browser tab title for the app
  2. 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:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
arraydudecommented, Jul 7, 2020

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)

4reactions
nthmostcommented, Jan 13, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found