blackary / st_pages

An experimental version of Streamlit Multi-Page Apps
MIT License
456 stars 76 forks source link

Readme Typo #13

Closed MathCatsAnd closed 1 year ago

MathCatsAnd commented 1 year ago

I'm not sure if you prefer an Issue or a pull request for something so trivial, but the second code snippet in the readme file is missing Section in the import statement.

from st_pages import Page, show_pages, add_page_title

add_page_title() # By default this also adds indentation

# Specify what pages should be shown in the sidebar, and what their titles and icons
# should be
show_pages(
    [
        Page("streamlit_app.py", "Home", "🏠"),
        Page("other_pages/page2.py", "Page 2", ":books:"),
        Section("My section", icon="🎈️"),
        # Pages after a section will be indented
        Page("Another page", icon="💪"),
    ]
)

should have

from st_pages import Page, Section, show_pages, add_page_title
blackary commented 1 year ago

Thanks, @MathCatsAnd! I'll just go ahead and fix that.