Path: blob/main/doc/how_to/streamlit_migration/layouts.md
3373 views
Layout Objects
Layouts helps you organize your objects including Panel components.
Panel provides layouts similar to the ones you know from Streamlit and many unique ones too.
Migration Steps
To migrate your layouts to Panel
replace your Streamlit
st.some_layoutsnake cased function with the corresponding Panelpn.SomeLayoutCamelCased class.
You can identify the relevant layout to migrate to in the Layouts Section of the Component Gallery.
Example
Columns Example
Streamlit Columns Example

Panel Columns Example
You can access Panel's layouts in the top-level pn namespace:

Panels Column and Row are list like objects. So you can use familiar methods like .append, .pop and [] indexing when you work with them. For the details check out the Column Guide and the Row Guide