# \#tabs

**URL:** https://discuss.streamlit.io/tag/tabs/99.md

[Latest](https://discuss.streamlit.io/latest.md) · [Categories](https://discuss.streamlit.io/categories.md) · [Tags](https://discuss.streamlit.io/tags.md)

---

## [Remove top header space and place tabs on the same level as the sidebar toggle](https://discuss.streamlit.io/t/remove-top-header-space-and-place-tabs-on-the-same-level-as-the-sidebar-toggle/111755)

<div class="topic-metadata">

**Author:** [@HenryELJ](https://discuss.streamlit.io/u/HenryELJ)\
**Replies:** 0\
**Last updated:** [May 6, 2025, 8:05am UTC](https://discuss.streamlit.io/t/remove-top-header-space-and-place-tabs-on-the-same-level-as-the-sidebar-toggle/111755 "2025-05-06T08:05:58Z")

</div>

Is there a way to completely remove the upper area of space above the tabs? So that my tabs are on the same level as the sidebar expand/collapse arrow? This area above is effectively “dead-space” I would like to utilise. …

---

## [Switch tabs programitically?](https://discuss.streamlit.io/t/switch-tabs-programitically/37887)

<div class="topic-metadata">

**Author:** [@Free-Radical](https://discuss.streamlit.io/u/Free-Radical)\
**Replies:** 10\
**Last updated:** [May 5, 2025, 8:40pm UTC](https://discuss.streamlit.io/t/switch-tabs-programitically/37887 "2025-05-05T20:40:09Z")

</div>

Hello everyone, I have an app with multiple tabs. Based on a User clicking a button I would like to switch to another tab. I cant seem to get this to work, at all. Even using the unsafe html code below dosent work: …

---

## [St.tabs - How to prevent rerun and jumping back to Tab 1?](https://discuss.streamlit.io/t/st-tabs-how-to-prevent-rerun-and-jumping-back-to-tab-1/30202)

<div class="topic-metadata">

**Author:** [@Tassadan](https://discuss.streamlit.io/u/Tassadan)\
**Replies:** 13\
**Last updated:** [May 2, 2025, 7:51pm UTC](https://discuss.streamlit.io/t/st-tabs-how-to-prevent-rerun-and-jumping-back-to-tab-1/30202 "2025-05-02T19:51:14Z")

</div>

Hello, I currently have the following problem with the tabs. I added two tabs on my page and in both select boxes as an example. If I change the select box in Tab 2, the program jumps back to Tab 1. I know I can use a …

---

## [Why st.write() dosen't prints something when kept after with tab:  code ends while using AgGrid inside tab](https://discuss.streamlit.io/t/why-st-write-dosent-prints-something-when-kept-after-with-tab-code-ends-while-using-aggrid-inside-tab/109015)

<div class="topic-metadata">

**Author:** [@aishworyann](https://discuss.streamlit.io/u/aishworyann)\
**Replies:** 0\
**Last updated:** [April 16, 2025, 7:03am UTC](https://discuss.streamlit.io/t/why-st-write-dosent-prints-something-when-kept-after-with-tab-code-ends-while-using-aggrid-inside-tab/109015 "2025-04-16T07:03:30Z")

</div>

with tab3: gb = GridOptionsBuilder.from\_dataframe(unique\_cif) gb.configure\_selection(selection\_mode="single", use\_checkbox=False) grid\_options = gb.build() grid\_response = AgGrid( …

---

## [Creating new sidebars for different tabs](https://discuss.streamlit.io/t/creating-new-sidebars-for-different-tabs/31643)

<div class="topic-metadata">

**Author:** [@aww033](https://discuss.streamlit.io/u/aww033)\
**Replies:** 6\
**Last updated:** [December 27, 2024, 7:34am UTC](https://discuss.streamlit.io/t/creating-new-sidebars-for-different-tabs/31643 "2024-12-27T07:34:31Z")

</div>

Hello everyone, I would like to know if it’s possible to have a different sidebar for each tab on your Streamlit website? So far, there is only one sidebar for all the tabs.

---

## [Tabs for Filters/Facets](https://discuss.streamlit.io/t/tabs-for-filters-facets/84412)

<div class="topic-metadata">

**Author:** [@Luca2](https://discuss.streamlit.io/u/Luca2)\
**Replies:** 4\
**Last updated:** [October 30, 2024, 11:26am UTC](https://discuss.streamlit.io/t/tabs-for-filters-facets/84412 "2024-10-30T11:26:27Z")

</div>

Hi there! I’m looking for some guidance as I’m new to Streamlit and haven’t found exactly what I need in the available Streamlit and community components. I’m designing an e-commerce search page on Streamlit. The goal i…

---

## [Html files incorrectly displayed in tabs](https://discuss.streamlit.io/t/html-files-incorrectly-displayed-in-tabs/81586)

<div class="topic-metadata">

**Author:** [@viennesepie](https://discuss.streamlit.io/u/viennesepie)\
**Replies:** 3\
**Last updated:** [September 20, 2024, 11:58am UTC](https://discuss.streamlit.io/t/html-files-incorrectly-displayed-in-tabs/81586 "2024-09-20T11:58:12Z")

</div>

hi, I am trying to display an html file in each tab but it is only correctly displayed for the first tab, for all others there is something wrong with formatting. could smn tell me what can be the reason? I tested with …

---

## [Avoid the scroll of tab name](https://discuss.streamlit.io/t/avoid-the-scroll-of-tab-name/81412)

<div class="topic-metadata">

**Author:** [@Stefano](https://discuss.streamlit.io/u/Stefano)\
**Replies:** 1\
**Last updated:** [September 17, 2024, 3:35pm UTC](https://discuss.streamlit.io/t/avoid-the-scroll-of-tab-name/81412 "2024-09-17T15:35:31Z")

</div>

Hi to all, In a “st.tabs” I have a tab page with 3 containers (see below), when i click the refesh button the function fills the containers with some data, and this work well. But when I scroll to see the data, the ta…

---

## [Show HTML in a tab](https://discuss.streamlit.io/t/show-html-in-a-tab/81159)

<div class="topic-metadata">

**Author:** [@jonimatix](https://discuss.streamlit.io/u/jonimatix)\
**Replies:** 3\
**Last updated:** [September 13, 2024, 12:29pm UTC](https://discuss.streamlit.io/t/show-html-in-a-tab/81159 "2024-09-13T12:29:09Z")

</div>

Hi all, I am trying to display an html file in a tab but it is not showing the contents. The html display fine when using components though, so this must be related to tabs? Code: for i, tab in enumerate(tabs): \_tab\_…

---

## [Adding sliding behaviour to Tabs](https://discuss.streamlit.io/t/adding-sliding-behaviour-to-tabs/80924)

<div class="topic-metadata">

**Author:** [@mGolos](https://discuss.streamlit.io/u/mGolos)\
**Replies:** 0\
**Last updated:** [September 10, 2024, 9:46am UTC](https://discuss.streamlit.io/t/adding-sliding-behaviour-to-tabs/80924 "2024-09-10T09:46:32Z")

</div>

Hello there, Would it be difficult to add a finger sliding behaviour to switch tabs on mobile? (sliding two times to the left to go from t1 to t3 with t1, t2, t3 = st.tabs(3)) Any idea how to achieve that if possible? …

---

## [TabBar Disappears on Page Refresh with extra\_streamlit\_components](https://discuss.streamlit.io/t/tabbar-disappears-on-page-refresh-with-extra-streamlit-components/65705)

<div class="topic-metadata">

**Author:** [@dongbang\_ban](https://discuss.streamlit.io/u/dongbang_ban)\
**Replies:** 2\
**Last updated:** [June 30, 2024, 12:35am UTC](https://discuss.streamlit.io/t/tabbar-disappears-on-page-refresh-with-extra-streamlit-components/65705 "2024-06-30T00:35:46Z")

</div>

Hello Streamlit Community, I’m encountering a peculiar issue with the TabBar component from the extra\_streamlit\_components library, where it disappears every time I refresh the page. However, this behavior only occurs w…

---

## [Automaticly switching through tabs](https://discuss.streamlit.io/t/automaticly-switching-through-tabs/72279)

<div class="topic-metadata">

**Author:** [@Pedro\_Trama](https://discuss.streamlit.io/u/Pedro_Trama)\
**Replies:** 0\
**Last updated:** [June 10, 2024, 5:47pm UTC](https://discuss.streamlit.io/t/automaticly-switching-through-tabs/72279 "2024-06-10T17:47:46Z")

</div>

Hello! I’ve developed a dashboard that my coworkers have been consulting for a few months now. It has three tabs that work perfectly. But since it is a dashboard that is always on display in the center of our meeting ro…

---

## [Link to a header in a tab](https://discuss.streamlit.io/t/link-to-a-header-in-a-tab/68019)

<div class="topic-metadata">

**Author:** [@Yash\_Sharma1](https://discuss.streamlit.io/u/Yash_Sharma1)\
**Replies:** 0\
**Last updated:** [April 26, 2024, 4:20am UTC](https://discuss.streamlit.io/t/link-to-a-header-in-a-tab/68019 "2024-04-26T04:20:39Z")

</div>

Hello, I’ve been trying to find a way to link to a header within a tab so that when someone clicks on a hyperlink, it redirects them to the tab and header where they want to go to.

---

## [Add spacing between tabs](https://discuss.streamlit.io/t/add-spacing-between-tabs/28997)

<div class="topic-metadata">

**Author:** [@tommaso-moro](https://discuss.streamlit.io/u/tommaso-moro)\
**Replies:** 15\
**Last updated:** [March 26, 2024, 4:24am UTC](https://discuss.streamlit.io/t/add-spacing-between-tabs/28997 "2024-03-26T04:24:28Z")

</div>

Hi all! I am using st.tabs (st.tabs - Streamlit Docs) and would like to add some horizontal spacing between the tabs’ titles, as they are very close to each other and make the page feel a bit cluttered. Is there a way o…

---

## [Plolty graphs flicker issue?](https://discuss.streamlit.io/t/plolty-graphs-flicker-issue/63037)

<div class="topic-metadata">

**Author:** [@thisisbhupendrasingh](https://discuss.streamlit.io/u/thisisbhupendrasingh)\
**Replies:** 2\
**Last updated:** [February 28, 2024, 10:20am UTC](https://discuss.streamlit.io/t/plolty-graphs-flicker-issue/63037 "2024-02-28T10:20:29Z")

</div>

Hi community! My plolty graphs are flickering while switching between tabs. I have added a video for your reference. Please help me resolve this! t1,t2,t3,t4 = container.tabs(\["Trending","Meta","Trip Type","Currency"\])…

---

## [Customize tabs](https://discuss.streamlit.io/t/customize-tabs/62026)

<div class="topic-metadata">

**Author:** [@Jose\_Quijado](https://discuss.streamlit.io/u/Jose_Quijado)\
**Replies:** 1\
**Last updated:** [February 9, 2024, 11:16pm UTC](https://discuss.streamlit.io/t/customize-tabs/62026 "2024-02-09T23:16:08Z")

</div>

I’m using streamlit with python 3.11.2 on a MacBook Pro. I use the tabs widget and I’d like to customise my tabs in color, font, etc. How can I do that?

---

## [When tabs is switched, how do I clear the radio status and the content below it](https://discuss.streamlit.io/t/when-tabs-is-switched-how-do-i-clear-the-radio-status-and-the-content-below-it/60997)

<div class="topic-metadata">

**Author:** [@nly](https://discuss.streamlit.io/u/nly)\
**Replies:** 0\
**Last updated:** [January 29, 2024, 8:09am UTC](https://discuss.streamlit.io/t/when-tabs-is-switched-how-do-i-clear-the-radio-status-and-the-content-below-it/60997 "2024-01-29T08:09:44Z")

</div>

My code: # The dictionary is actually going to be dynamic zoon = { "cat": \['缅因', '金渐层', '三花猫', '美短'\], "dog": \['柴犬', '二哈', '萨摩耶', '金毛'\] } data\_tabs = list(zoon.keys()) tabs = st.tabs(data\_tabs) for i …

---

## [Activate a Tab with a Button in the SideBar?](https://discuss.streamlit.io/t/activate-a-tab-with-a-button-in-the-sidebar/60916)

<div class="topic-metadata">

**Author:** [@maajdl](https://discuss.streamlit.io/u/maajdl)\
**Replies:** 1\
**Last updated:** [January 27, 2024, 10:24am UTC](https://discuss.streamlit.io/t/activate-a-tab-with-a-button-in-the-sidebar/60916 "2024-01-27T10:24:34Z")

</div>

Would it be possible to Activate a Tab with a Button in the SideBar ? How could I do this? Thanks Michel

---

## [Dynamically open multiple pdfs files in different tabs](https://discuss.streamlit.io/t/dynamically-open-multiple-pdfs-files-in-different-tabs/56241)

<div class="topic-metadata">

**Author:** [@Mejdi\_Dallel](https://discuss.streamlit.io/u/Mejdi_Dallel)\
**Replies:** 0\
**Last updated:** [November 27, 2023, 9:14am UTC](https://discuss.streamlit.io/t/dynamically-open-multiple-pdfs-files-in-different-tabs/56241 "2023-11-27T09:14:26Z")

</div>

Hi, I have a Streamlit application where I can upload some pdf files and then select the files I want to work on from a select box and they will be displayed in the main panel. Now instead of displaying all the selected …

---

## [How change state in st.tabs() like st.button and st.selectbox()?](https://discuss.streamlit.io/t/how-change-state-in-st-tabs-like-st-button-and-st-selectbox/56091)

<div class="topic-metadata">

**Author:** [@SaiDev](https://discuss.streamlit.io/u/SaiDev)\
**Replies:** 4\
**Last updated:** [November 24, 2023, 10:28am UTC](https://discuss.streamlit.io/t/how-change-state-in-st-tabs-like-st-button-and-st-selectbox/56091 "2023-11-24T10:28:24Z")

</div>

Hi, I am currently using Streamlit for a simple dashboard application. I want to display a temperature and speed value (changes continuously using random function). I have 2 tabs created using st.tabs() using st.empty() …

---

## [How to get selected tab name](https://discuss.streamlit.io/t/how-to-get-selected-tab-name/29039)

<div class="topic-metadata">

**Author:** [@imClumsyPanda](https://discuss.streamlit.io/u/imClumsyPanda)\
**Replies:** 5\
**Last updated:** [November 2, 2023, 11:49am UTC](https://discuss.streamlit.io/t/how-to-get-selected-tab-name/29039 "2023-11-02T11:49:53Z")

</div>

Is there any way to get the selected tab of st.tab?

---

## [Folium map is not constantly showed in all tabs](https://discuss.streamlit.io/t/folium-map-is-not-constantly-showed-in-all-tabs/31589)

<div class="topic-metadata">

**Author:** [@kevin\_wu](https://discuss.streamlit.io/u/kevin_wu)\
**Replies:** 1\
**Last updated:** [November 2, 2023, 12:14am UTC](https://discuss.streamlit.io/t/folium-map-is-not-constantly-showed-in-all-tabs/31589 "2023-11-02T00:14:44Z")

</div>

I have st.tabs with 2 tabs. I want to show 2 different folium map with different data/marker on those maps. Sometimes it will show the map on tab 1, sometimes on tab 2. Do you have suggestions? x\_map = folium.Map(loc…

---

## [Can i create tabs inside a tab on Streamlit?](https://discuss.streamlit.io/t/can-i-create-tabs-inside-a-tab-on-streamlit/53751)

<div class="topic-metadata">

**Author:** [@Gabriel\_Gomes](https://discuss.streamlit.io/u/Gabriel_Gomes)\
**Replies:** 1\
**Last updated:** [October 21, 2023, 11:58am UTC](https://discuss.streamlit.io/t/can-i-create-tabs-inside-a-tab-on-streamlit/53751 "2023-10-21T11:58:59Z")

</div>

:police\_car\_light: Nested Expanders causing StreamlitAPIException :police\_car\_light: Hello Streamlit Community! I’m developing a local app and facing an issue when trying to use nested expanders. I want to have an outer…

---

## [\[BUG 1.27\] Change name to a tab after a rerun, switch to the first tab](https://discuss.streamlit.io/t/bug-1-27-change-name-to-a-tab-after-a-rerun-switch-to-the-first-tab/52167)

<div class="topic-metadata">

**Author:** [@Mortafix](https://discuss.streamlit.io/u/Mortafix)\
**Replies:** 3\
**Last updated:** [October 1, 2023, 9:25am UTC](https://discuss.streamlit.io/t/bug-1-27-change-name-to-a-tab-after-a-rerun-switch-to-the-first-tab/52167 "2023-10-01T09:25:49Z")

</div>

Summary After using st.rerun inside a tab that change its name, Streamlit force the app to the first tab. Steps to reproduce Code snippet: tab2\_name = "Tab 2 RERUN!" if st.session\_state.pop("rerun", None) else "Tab 2" …

---

## [St.link\_button()](https://discuss.streamlit.io/t/st-link-button/52384)

<div class="topic-metadata">

**Author:** [@Hari\_Nithya](https://discuss.streamlit.io/u/Hari_Nithya)\
**Replies:** 1\
**Last updated:** [September 28, 2023, 2:22pm UTC](https://discuss.streamlit.io/t/st-link-button/52384 "2023-09-28T14:22:14Z")

</div>

How to use st.link\_button() to navigate to a link within the same tab without creating new session?

---

## [St.tabs mobile not auto-fit to screen](https://discuss.streamlit.io/t/st-tabs-mobile-not-auto-fit-to-screen/51314)

<div class="topic-metadata">

**Author:** [@lavint](https://discuss.streamlit.io/u/lavint)\
**Replies:** 1\
**Last updated:** [September 21, 2023, 12:46pm UTC](https://discuss.streamlit.io/t/st-tabs-mobile-not-auto-fit-to-screen/51314 "2023-09-21T12:46:58Z")

</div>

Summary The tabs header is not responsive to the change in screen size. On a large screen, we will see all 4 tabs. If we make the screen smaller, we will have to scroll to the right to see all tabs. How to make the tabs …

---

## [AttributeError: module 'streamlit' has no attribute 'tabs'](https://discuss.streamlit.io/t/attributeerror-module-streamlit-has-no-attribute-tabs/38999)

<div class="topic-metadata">

**Author:** [@sslederer](https://discuss.streamlit.io/u/sslederer)\
**Replies:** 6\
**Last updated:** [September 12, 2023, 3:58am UTC](https://discuss.streamlit.io/t/attributeerror-module-streamlit-has-no-attribute-tabs/38999 "2023-09-12T03:58:45Z")

</div>

I’m having trouble making tabs in streamlit 1.12.0 Basic example: import streamlit as st tab1, tab2 = st.tabs(\[‘First’, ‘Second’\]) with tab1: st.write(‘First tab’) with tab2: st.write(‘Second tab’) The error is, …

---

## [Page move up when change options](https://discuss.streamlit.io/t/page-move-up-when-change-options/31272)

<div class="topic-metadata">

**Author:** [@Piotr](https://discuss.streamlit.io/u/Piotr)\
**Replies:** 7\
**Last updated:** [August 10, 2023, 11:45am UTC](https://discuss.streamlit.io/t/page-move-up-when-change-options/31272 "2023-08-10T11:45:48Z")

</div>

Hi, i have problem with one think. I have page with a few containers, and in them I fave tabs. When I change anything o select box, or whatever else page move up. Sometimes to top page sometimes less. Record below

---

## [When generating a large number of tabs with st.tabs, unmanageable tabs may occur](https://discuss.streamlit.io/t/when-generating-a-large-number-of-tabs-with-st-tabs-unmanageable-tabs-may-occur/46009)

<div class="topic-metadata">

**Author:** [@chugai-so-ukiyama](https://discuss.streamlit.io/u/chugai-so-ukiyama)\
**Replies:** 1\
**Last updated:** [June 26, 2023, 3:20am UTC](https://discuss.streamlit.io/t/when-generating-a-large-number-of-tabs-with-st-tabs-unmanageable-tabs-may-occur/46009 "2023-06-26T03:20:03Z")

</div>

Summary When generating a large number of tabs with st.tabs, unmanageable tabs may occur. I would like to know if there is any way to avoid this issue without reducing the number of characters in the tabs. Steps to rep…

---

## [Speed of rendering content in tabs vs multipage apps](https://discuss.streamlit.io/t/speed-of-rendering-content-in-tabs-vs-multipage-apps/44306)

<div class="topic-metadata">

**Author:** [@C\_Quang](https://discuss.streamlit.io/u/C_Quang)\
**Replies:** 2\
**Last updated:** [June 14, 2023, 10:30am UTC](https://discuss.streamlit.io/t/speed-of-rendering-content-in-tabs-vs-multipage-apps/44306 "2023-06-14T10:30:41Z")

</div>

Hi all, Is there a difference in the speed that Streamlit renders content if you package content in tabs vs on separate pages? This link in the very helpful docs suggests that “All the content of every tab is always se…

[Next page](https://discuss.streamlit.io/tag/tabs/99.md?match_all_tags=true&page=1&tags%5B%5D=tabs)
