Spaces:
Sleeping
Sleeping
| import solara | |
| from pathlib import Path | |
| HERE = Path(__file__).parent | |
| def Page(): | |
| md_text = (HERE.parent / "README.md").read_text() | |
| # take out front matter | |
| md_text = md_text.rpartition("---")[2] | |
| solara.Markdown(md_text) | |
| solara.Title("Draw data widget demo with Solara ☀️") | |
| def Layout(children): | |
| dark_effective = solara.lab.use_dark_effective() | |
| # I like a dark toolbar always, just a different color in dark mode | |
| return solara.AppLayout(children=children, toolbar_dark=True, color=None if dark_effective else "primary") | |