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

Some updates about tabs in streamlit:

1 Like