[Python] Customize the Sidebar (Pages) in Streamlit to Have Sections

Discussão em 'Python' iniciado por Stack, Julho 30, 2025.

  1. Stack

    Stack Membro Participativo

    I am working on a simple multipage Streamlit app that allows CRUD operations to be performed on some data. I understand that creating a pages directory will allows me to have multiple pages in my app, which is what I have done as shown here,

    [​IMG]

    My project structure looks like this,

    /Home.py
    /pages/Add_Pikcups.py
    /pages/View_Pickups.py


    Now, I want to have multiple sections in my app. For instance, these are the pages that come under the 'Pickups' section and then I would also like to have a 'Drops' section as so on.

    Is there some way I can customize my sidebar to display the pages as these multiple sections?

    So, I'd want something like,

    Pickups

    • Add Pickups
    • View Pickups

    Drops

    • Add Drops
    • View Drops

    Not as bullet points, but I hope the idea is clear.

    Continue reading...

Compartilhe esta Página