Snippets were plain Python dicts — marimo expects actual notebook files (marimo.App with @app.cell). Rewrote all 10 as proper marimo notebooks that load_app() can parse. Disabled include_default_snippets — only our project snippets show. 10 snippets: duckdb, trino, bib, nessie, s3-obstore, chart-bar, chart-line, query-demographics, query-schema, query-pmpm. refs #75
43 lines
759 B
Python
43 lines
759 B
Python
import marimo
|
|
|
|
__generated_with = "0.20.4"
|
|
app = marimo.App()
|
|
|
|
|
|
@app.cell
|
|
def _(mo):
|
|
mo.md(r"""
|
|
# Chart: Time series line chart
|
|
|
|
Template for a multi-series time series line chart with Altair.
|
|
""")
|
|
return
|
|
|
|
|
|
@app.cell
|
|
def _(alt):
|
|
chart = (
|
|
alt.Chart(df.to_pandas())
|
|
.mark_line(point=True)
|
|
.encode(
|
|
x=alt.X("date:T", title="Date"),
|
|
y=alt.Y("value:Q", title="Value"),
|
|
color=alt.Color("series:N", title="Series"),
|
|
tooltip=["date:T", "series:N", "value:Q"],
|
|
)
|
|
.properties(title="Title", width=800, height=350)
|
|
)
|
|
chart
|
|
return (chart,)
|
|
|
|
|
|
@app.cell
|
|
def _():
|
|
import marimo as mo
|
|
|
|
return (mo,)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run()
|