Spaces:
Running
Running
Move imports to the bottom
Browse files- polars/05_reactive_plots.py +15 -10
polars/05_reactive_plots.py
CHANGED
|
@@ -15,14 +15,6 @@ __generated_with = "0.11.26"
|
|
| 15 |
app = marimo.App(width="medium")
|
| 16 |
|
| 17 |
|
| 18 |
-
@app.cell
|
| 19 |
-
def _():
|
| 20 |
-
import marimo as mo
|
| 21 |
-
import polars as pl
|
| 22 |
-
import plotly.express as px
|
| 23 |
-
return mo, pl, px
|
| 24 |
-
|
| 25 |
-
|
| 26 |
@app.cell(hide_code=True)
|
| 27 |
def _(mo):
|
| 28 |
mo.md(
|
|
@@ -401,8 +393,8 @@ def _(chart2, filtered_duration, mo, pl):
|
|
| 401 |
|
| 402 |
|
| 403 |
@app.cell(hide_code=True)
|
| 404 |
-
def _():
|
| 405 |
-
# Appendix : Some other examples
|
| 406 |
return
|
| 407 |
|
| 408 |
|
|
@@ -495,5 +487,18 @@ def _(filter_genre2, filtered_duration, mo, pl):
|
|
| 495 |
return (artist_combinations,)
|
| 496 |
|
| 497 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 498 |
if __name__ == "__main__":
|
| 499 |
app.run()
|
|
|
|
| 15 |
app = marimo.App(width="medium")
|
| 16 |
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
@app.cell(hide_code=True)
|
| 19 |
def _(mo):
|
| 20 |
mo.md(
|
|
|
|
| 393 |
|
| 394 |
|
| 395 |
@app.cell(hide_code=True)
|
| 396 |
+
def _(mo):
|
| 397 |
+
mo.md("""# Appendix : Some other examples""")
|
| 398 |
return
|
| 399 |
|
| 400 |
|
|
|
|
| 487 |
return (artist_combinations,)
|
| 488 |
|
| 489 |
|
| 490 |
+
@app.cell
|
| 491 |
+
def _():
|
| 492 |
+
import marimo as mo
|
| 493 |
+
return (mo,)
|
| 494 |
+
|
| 495 |
+
|
| 496 |
+
@app.cell
|
| 497 |
+
def _():
|
| 498 |
+
import polars as pl
|
| 499 |
+
import plotly.express as px
|
| 500 |
+
return pl, px
|
| 501 |
+
|
| 502 |
+
|
| 503 |
if __name__ == "__main__":
|
| 504 |
app.run()
|