Py.Cafe

iisakkirotko/

inception

Embedded Interactive Solara Demo

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import solara


@solara.component
def Page():
    with solara.Div(
        style="display: flex; justify-content: center; align-items: center; height: 100%; width: 100%;"
    ):
        solara.HTML(
            tag="iframe",
            attributes={
                "src": "http://localhost:3001/embed/iisakkirotko/inception?theme=dark&linkToApp=true",
                "width": "95%",
                "height": "95%",
                "style": "border: 1px solid #e6e6e6; border-radius: 8px;",
            }
        )