Created
February 2, 2026 20:38
-
-
Save malikbenkirane/547147dfda5820a676945d2d9fbc7b15 to your computer and use it in GitHub Desktop.
Marimo Demo #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import marimo | |
| __generated_with = "0.19.7" | |
| app = marimo.App(width="medium") | |
| @app.cell | |
| def _(): | |
| import pandas as pd | |
| import pyarrow | |
| import marimo as mo | |
| import numpy as np | |
| from datetime import date | |
| return date, mo, np, pd | |
| @app.cell | |
| def _(date, np, pd): | |
| df = pd.DataFrame({ | |
| 'price': np.linspace(1,2,num=20), | |
| 'date': [date(2026,2,day) for day in range(2,22)], | |
| }) | |
| return (df,) | |
| @app.cell | |
| def _(df): | |
| df | |
| return | |
| @app.cell | |
| def _(): | |
| import altair as alt | |
| return (alt,) | |
| @app.cell | |
| def _(alt, df, mo): | |
| mo.ui.altair_chart(alt.Chart(df).mark_line().encode(x='date', y='price')) | |
| return | |
| @app.cell | |
| def _(): | |
| return | |
| if __name__ == "__main__": | |
| app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment