okld / streamlit-elements

Create a draggable and resizable dashboard in Streamlit, featuring Material UI widgets, Monaco editor (Visual Studio Code), Nivo charts, and more!
MIT License
730 stars 82 forks source link

Is it possible to use regular streamlit within streamlit-elements? #19

Open avidale opened 2 years ago

avidale commented 2 years ago

Please guide me to a more correct place to ask this question, if here is not the right one.

I have a page designed with streamlit-elements, and I want to add a plot to it. I know how to create this plot with matplotlib, and if I used just pure streamlit, I would just call streamlit.write(figure) to display it. However, this way the image renders above all streamlit_elements, and I want it instead to land within the specific streamlit_elements.mui.Card element.

How can I achieve this, and does it make sense at all?

jslevacque commented 1 year ago

Does anyone found a way to manage with this issue ?

lukehodges commented 1 year ago

Same Here