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: remove old vega css for forcing full width (#4755)
Myles Scolnick1dbf96f87f42
diff --git a/frontend/src/plugins/impl/vega/vega.css b/frontend/src/plugins/impl/vega/vega.cssindex 6c3178de08..7195d70ee9 100644--- a/frontend/src/plugins/impl/vega/vega.css+++ b/frontend/src/plugins/impl/vega/vega.css@@ -11,16 +11,6 @@overflow-x: auto;}-/* This may have bad performance, but it's the only way I can get the vega chart to fill the space. */-div:has(> marimo-ui-element > marimo-vega) {- display: block !important;- flex: 1;-- @media (min-width: 500px) {- min-width: 350px;- }-}-.vega-embed canvas {@apply rounded-md;}diff --git a/marimo/_smoke_tests/issues/4746_altair_hstacks.py b/marimo/_smoke_tests/issues/4746_altair_hstacks.pynew file mode 100644index 0000000000..0f15138e54--- /dev/null+++ b/marimo/_smoke_tests/issues/4746_altair_hstacks.py@@ -0,0 +1,60 @@+++import marimo++__generated_with = "0.13.3"+app = marimo.App(width="medium")+++def _():+ import altair as alt+ import pandas as pd+ import marimo as mo++ from vega_datasets import data++ source = data.cars()++ plot_1 = mo.ui.altair_chart(+ alt.Chart(source)+ .mark_point()+ .encode(+ x="Horsepower",+ y="Miles_per_Gallon",+ )+ )++ plot_2 = mo.ui.altair_chart(+ alt.Chart(source)+ .mark_point()+ .encode(+ x="Year",+ y="Horsepower",+ )+ )++ mo.hstack([plot_1, plot_2])+ return mo, plot_1, plot_2+++def _(mo, plot_1, plot_2):+ mo.hstack([plot_1, plot_2], justify="start")+ return+++def _(mo, plot_1, plot_2):+ mo.hstack([plot_1, plot_2], justify="start", widths="equal")+ return+++def _(plot_1):+ plot_1+ return+++if __name__ == "__main__":+ app.run()