Streamlit
dadosfera.services.streamlit.format_page
format_page(page_title, layout='wide', initial_sidebar_state='expanded')
Format the streamlit page to the pattern of a dadosfera data app page
PARAMETER | DESCRIPTION |
---|---|
page_title
|
the title of the page Example: "My Streamlit App"
TYPE:
|
layout
|
How the page content should be laid out. Defaults to "centered", which constrains the elements into a centered column of fixed width; "wide" uses the entire screen. Defaults to 'wide'.
TYPE:
|
initial_sidebar_state
|
How the sidebar should start out. Defaults to "auto", which hides the sidebar on small devices and shows it otherwise. "expanded" shows the sidebar initially; "collapsed" hides it. In most cases, you should just use "auto", otherwise the app will look bad when embedded and viewed on mobile.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
None |
See Also: - https://docs.streamlit.io/develop/api-reference/configuration/st.set_page_config
Source code in dadosfera/services/streamlit.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|