Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

add container charts smoke test (#8763)

Shahmir Varqha16feda1bb2ef
diff --git a/marimo/_smoke_tests/altair_examples/container_charts.py b/marimo/_smoke_tests/altair_examples/container_charts.py
new file mode 100644
index 0000000000..213cb81674
--- /dev/null
+++ b/marimo/_smoke_tests/altair_examples/container_charts.py
@@ -0,0 +1,38 @@
+import marimo
+
+__generated_with = "0.21.0"
+app = marimo.App(width="medium")
+
+with app.setup:
+ import marimo as mo
+ import altair as alt
+ from altair.datasets import data
+
+
+def _():
+ cars = data.cars()
+
+ chart = (
+ alt.Chart(cars)
+ .mark_point()
+ .encode(
+ x="Horsepower",
+ y="Miles_per_Gallon",
+ color="Origin",
+ )
+ .interactive()
+ )
+ chart.properties(width="container")
+ return (chart,)
+
+
+def _(chart):
+ # Broken
+ chart.properties(height="container")
+ return
+
+
+if __name__ == "__main__":
+ app.run()