Grid Layout

I want to use the grid layout as some of the developers have used in their projects.

But when I write something like st.grid(), it throws an error that AttributeError: module 'streamlit' has no attribute 'grid'

Streamlit version: 0.52.0

How do I resolve this?

1 Like

Hi sriram.verturi.

There currently is no grid layout in Streamlit. But some of the plotting libraries like Bokeh/ HoloViews, Plotly and Vega they enable you to compose a grid that can then be displayed in Streamlit.

See for example

http://holoviews.org/reference/index.html (The section called Containers).

https://altair-viz.github.io/gallery/index.html (The section called Interactive Charts)

There is also a few examples at awesome-streamlit.org

1 Like