Urgent : Tabs in Streamlit

How we can add a tab using streamlit.

As per this thread, the way to open a new tab would be via the following piece of code:

st.markdown('<a target="_blank" href="https://www.globo.com/">Access globo.com</a>', unsafe_allow_html=True)

Does this do the job for you?

Dinesh

I’m not talking about browser tab, its a tab container

Oh sorry for misunderstanding your question.I don’t believe that is supported. There’s an open issue: https://github.com/streamlit/streamlit/issues/233

Dinesh

Hello @Daniyal56,

This feature doesn’t exist yet in streamlit, but as @ddutt said, there’s an open GitHub issue.

It might not be ideal for your use case, but you could try to use st.beta_expander() instead.

1 Like