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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix variable shadowing bug in vconcat handling (#207)
Akshay Agrawalf72837f31f48
diff --git a/marimo/_plugins/ui/_impl/altair_chart.py b/marimo/_plugins/ui/_impl/altair_chart.pyindex b9bc421764..3d5f14f8a4 100644--- a/marimo/_plugins/ui/_impl/altair_chart.py+++ b/marimo/_plugins/ui/_impl/altair_chart.py@@ -191,9 +191,9 @@ class altair_chart(UIElement[ChartSelection, "pd.DataFrame"]):# Fix the sizing for vconcat chartsif "vconcat" in vega_spec:- for chart in vega_spec["vconcat"]:- if "width" not in chart:- chart["width"] = "container"+ for subchart in vega_spec["vconcat"]:+ if "width" not in subchart:+ subchart["width"] = "container"# without autosize, vconcat will overflowif "autosize" not in vega_spec:vega_spec["autosize"] = "fit-x"