blackary / st_pages

An experimental version of Streamlit Multi-Page Apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hide_pages is buggy: starts hidden, but reappears as soon as any page is accessed.

victorccaldas opened this issue ยท comments

Code:


show_pages(
        [
            Page("paginas/dashboard.py", "Dashboard", "๐Ÿ“Š"),

            Page("paginas/ferramentas.py", "Tools", "โš™๏ธ"),
            
            Page("paginas/docs.py", "Docs", "๐Ÿงพ"),
            
            Page("paginas/finance.py", "Finance", "๐Ÿ’ฒ")
        ]
    )

hide_pages(["Tools"])

You have to use hide_pages on every page that you want pages hidden from. It would be possible to make it permanent, but right now this is the behavior by design. I added an issue for the future if someone wants to add that new functionality #35