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: update snapshots and types for altair v6.1.0 / vega-lite v6.4.1 (#9415)
Myles Scolnick96b7ceb7df74
diff --git a/.github/renovate.json5 b/.github/renovate.json5index 7a017d8cb2..94d1119f35 100644--- a/.github/renovate.json5+++ b/.github/renovate.json5@@ -65,8 +65,6 @@"!/.*@oxc.*/",// react-hook-form is pinned to 7.54.2"!/.*react-hook-form.*/",- // vega-lite is pinned to 6.3.1- "!/.*vega-lite.*/",// pyodide needs to be manually updated"!/.*pyodide.*/"],diff --git a/.github/workflows/test_fe.yaml b/.github/workflows/test_fe.yamlindex 01dc46af8c..cdc81bc978 100644--- a/.github/workflows/test_fe.yaml+++ b/.github/workflows/test_fe.yaml@@ -181,10 +181,6 @@ jobs:echo "Error: react-hook-form version in package.json must be exactly 7.54.2. As it breaks mo.ui.dataframe"exit 1fi- if ! grep -q '"vega-lite": "6.3.1"' package.json; then- echo "Error: vega-lite version in package.json must be exactly 6.3.1. Newer versions break numeric tooltips"- exit 1- fiif ! grep -q '"html-to-image": "1.11.13"' package.json; thenecho "Error: html-to-image version in package.json must be exactly 1.11.13. Newer versions break matplotlib toolbars"exit 1diff --git a/frontend/package.json b/frontend/package.jsonindex 45017d0449..b4ba01e656 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -155,7 +155,7 @@"typescript-memoize": "^1.1.1","use-acp": "0.2.6","use-resize-observer": "^9.1.0",- "vega-lite": "6.3.1",+ "vega-lite": "6.4.2","vega-loader": "^5.1.0","vega-parser": "^7.1.0","vega-tooltip": "^1.1.0",diff --git a/marimo/_data/charts.py b/marimo/_data/charts.pyindex 6552e4bb2a..84df32e923 100644--- a/marimo/_data/charts.py+++ b/marimo/_data/charts.py@@ -82,7 +82,9 @@ NUMBER_STROKE = "#8e4ec6" # purple-9COMMON_CONFIG = 'properties(width="container").configure_view(stroke=None)'-def add_common_config(chart: alt.Chart | alt.LayerChart) -> alt.Chart:+def add_common_config(+ chart: alt.Chart | alt.LayerChart | alt.FacetChart,+) -> alt.Chart:return chart.properties(width="container").configure_view(stroke=None) # type: ignorediff --git a/marimo/_output/formatters/altair_formatters.py b/marimo/_output/formatters/altair_formatters.pyindex 85ec30c0cb..4f812f0432 100644--- a/marimo/_output/formatters/altair_formatters.py+++ b/marimo/_output/formatters/altair_formatters.py@@ -196,7 +196,7 @@ def _apply_format_locales(embed_options: dict[str, Any]) -> dict[str, Any]:if DependencyManager.vl_convert_python.has():import vl_convert as vlc # type: ignore- return dict(vlc.get_time_format_locale(locale))+ return dict(vlc.get_time_format_locale(locale)) # type: ignore[arg-type]else:with urlopen(TIME_FORMAT_LOCALE_URL.format(locale=locale),@@ -212,7 +212,7 @@ def _apply_format_locales(embed_options: dict[str, Any]) -> dict[str, Any]:if DependencyManager.vl_convert_python.has():import vl_convert as vlc # type: ignore- return dict(vlc.get_format_locale(locale))+ return dict(vlc.get_format_locale(locale)) # type: ignore[arg-type]else:with urlopen(FORMAT_LOCALE_URL.format(locale=locale),diff --git a/marimo/_sql/engines/adbc.py b/marimo/_sql/engines/adbc.pyindex 7063d846df..696f54c52d 100644--- a/marimo/_sql/engines/adbc.py+++ b/marimo/_sql/engines/adbc.py@@ -534,7 +534,7 @@ class AdbcDBAPIEngine(SQLConnection[AdbcDbApiConnection]):return pl.from_arrow(arrow_table)def convert_to_pandas() -> pd.DataFrame:- return arrow_table.to_pandas()+ return cast("pd.DataFrame", arrow_table.to_pandas())result = convert_to_output(sql_output_format=sql_output_format,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 982e0cc10c..c7d538f00b 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -390,7 +390,7 @@ importers:version: 0.9.6([email protected])react-vega:specifier: ^8.0.0- version: 8.0.0([email protected]([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))+ version: 8.0.0([email protected]([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))react-virtuoso:specifier: ^4.18.1@@ -440,8 +440,8 @@ importers:specifier: ^9.1.0vega-lite:- specifier: 6.3.1- version: 6.3.1([email protected])+ specifier: 6.4.2+ version: 6.4.2([email protected])vega-loader:specifier: ^5.1.0version: 5.1.0@@ -9368,9 +9368,6 @@ packages:resolution: {integrity: sha512-zxPzXO33FawU3WQHRmHJaRreyJlyMaNMn1uuCFSouJttPkBBWB5gCrha2f5+pF3t4NMFWTnSrgCkR6mcaubnng==}- resolution: {integrity: sha512-aw6hGpTSiakAe5KqCsnpXNsBgN823IMq84x2Gg1pJj+H6zxlEfN4FCibPAC0PYWOmSvCRUoXMr7b/wWiwsiPIg==}-resolution: {integrity: sha512-hHgNx/fQ1Vn1u6vHSamH7lRMsOa/yQeHGGcWVmh8fZafLdwdhCM91kZD9p7+AleNpgwiwzfGogtpATFaMmDFYg==}@@ -9401,9 +9398,9 @@ packages:peerDependencies:vega: ^5.4.0- resolution: {integrity: sha512-k/XPsed82wElz7Rdlzhz3+ctAP3M79Gd+ohnAalozvfjcTjEpYbdJpJVVG+FVwStHnbkLtYlpm2ys9Z+ld9jrQ==}- engines: {node: '>=18'}+ resolution: {integrity: sha512-Mv2PaRIpijz256LM0NdOJd9Md8cqyrXina54xW6Qp865YfY502zlXGUst+W/XznVwISGfatt0yLZuDqCUbBDuw==}+ engines: {node: '>=20'}hasBin: truepeerDependencies:vega: ^6.0.0@@ -9468,9 +9465,6 @@ packages:resolution: {integrity: sha512-+y3ZW7dEqM8Ck+KRsd+jkMfxfE7MrQxUyIpNjkfhIpGEreym+aTn7XUw1DKXqclr8mqTQvbilPo16B3lnBr0wA==}- resolution: {integrity: sha512-/ayLYX3VVqfkKJB1mG+xkOKiBVlfFZ9BfUB5vf7eVyIRork24sABXdeH4x+XeWuqDKnLBTDedotA+1a5MxlV2Q==}-resolution: {integrity: sha512-PGfp0m0QCufDmcxKJCWQy4Ov23FoF8DSXmoJwSezi3itQaa2hbxK0+xwsTMP2vy4PR16Pu25HMzgMwXVW1+33w==}@@ -18914,12 +18908,12 @@ snapshots:dependencies:react: 19.2.4- [email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected])):+ [email protected]([email protected]([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected])):dependencies:fast-deep-equal: 3.1.3react: 19.2.4react-dom: 19.2.4([email protected])dependencies:@@ -20258,7 +20252,7 @@ snapshots:vega-loader: 5.1.0vega-util: 2.1.0dependencies:fast-json-patch: 3.1.1json-stringify-pretty-compact: 4.0.0@@ -20266,9 +20260,9 @@ snapshots:tslib: 2.8.1vega: 6.2.0vega-interpreter: 2.2.1- vega-lite: 6.3.1([email protected])+ vega-lite: 6.4.2([email protected])vega-schema-url-parser: 3.0.2vega-tooltip: 1.0.0@@ -20287,11 +20281,6 @@ snapshots:dependencies:vega-util: 1.17.4- dependencies:- '@types/estree': 1.0.8- vega-util: 2.1.0-dependencies:'@types/estree': 1.0.8@@ -20369,14 +20358,14 @@ snapshots:vega-util: 1.10.0yargs: 13.3.2dependencies:json-stringify-pretty-compact: 4.0.0tslib: 2.8.1vega: 6.2.0vega-event-selector: 4.0.0- vega-expression: 6.0.0- vega-util: 2.0.0+ vega-expression: 6.1.0+ vega-util: 2.1.0yargs: 18.0.0@@ -20442,10 +20431,10 @@ snapshots:dependencies:d3-array: 3.2.4dependencies:vega: 6.2.0- vega-lite: 6.3.1([email protected])+ vega-lite: 6.4.2([email protected])dependencies:@@ -20484,8 +20473,6 @@ snapshots:- [email protected]: {}-diff --git a/tests/_cli/snapshots/export/ipynb/ipynb_with_media_outputs.txt b/tests/_cli/snapshots/export/ipynb/ipynb_with_media_outputs.txtindex fea282c8ee..6804cd7cf4 100644--- a/tests/_cli/snapshots/export/ipynb/ipynb_with_media_outputs.txt+++ b/tests/_cli/snapshots/export/ipynb/ipynb_with_media_outputs.txt@@ -271,7 +271,7 @@"outputs": [{"data": {- "application/vnd.vegalite.v6+json": "{\n \"$schema\": \"https://vega.github.io/schema/vega-lite/v6.1.0.json\",\n \"config\": {\n \"view\": {\n \"continuousHeight\": 300,\n \"continuousWidth\": 300\n }\n },\n \"data\": {\n \"name\": \"data-a202e5dd04552c98b78a4bc5fc59f367\"\n },\n \"datasets\": {\n \"data-a202e5dd04552c98b78a4bc5fc59f367\": [\n {\n \"x\": 1,\n \"y\": 1\n }\n ]\n },\n \"encoding\": {\n \"x\": {\n \"field\": \"x\",\n \"type\": \"ordinal\"\n },\n \"y\": {\n \"field\": \"y\",\n \"type\": \"quantitative\"\n }\n },\n \"mark\": {\n \"type\": \"circle\"\n },\n \"usermeta\": {\n \"embedOptions\": {}\n }\n}"+ "application/vnd.vegalite.v6+json": "{\n \"$schema\": \"https://vega.github.io/schema/vega-lite/v6.4.1.json\",\n \"config\": {\n \"view\": {\n \"continuousHeight\": 300,\n \"continuousWidth\": 300\n }\n },\n \"data\": {\n \"name\": \"data-a202e5dd04552c98b78a4bc5fc59f367\"\n },\n \"datasets\": {\n \"data-a202e5dd04552c98b78a4bc5fc59f367\": [\n {\n \"x\": 1,\n \"y\": 1\n }\n ]\n },\n \"encoding\": {\n \"x\": {\n \"field\": \"x\",\n \"type\": \"ordinal\"\n },\n \"y\": {\n \"field\": \"y\",\n \"type\": \"quantitative\"\n }\n },\n \"mark\": {\n \"type\": \"circle\"\n },\n \"usermeta\": {\n \"embedOptions\": {}\n }\n}"},"metadata": {},"output_type": "display_data"@@ -292,7 +292,7 @@"outputs": [{"data": {- "application/vnd.vega.v6+json": "{\n \"$schema\": \"https://vega.github.io/schema/vega-lite/v6.1.0.json\",\n \"config\": {\n \"view\": {\n \"continuousHeight\": 300,\n \"continuousWidth\": 300\n }\n },\n \"data\": {\n \"name\": \"data-a202e5dd04552c98b78a4bc5fc59f367\"\n },\n \"datasets\": {\n \"data-a202e5dd04552c98b78a4bc5fc59f367\": [\n {\n \"x\": 1,\n \"y\": 1\n }\n ]\n },\n \"encoding\": {\n \"x\": {\n \"field\": \"x\",\n \"type\": \"ordinal\"\n },\n \"y\": {\n \"field\": \"y\",\n \"type\": \"quantitative\"\n }\n },\n \"mark\": {\n \"type\": \"circle\"\n },\n \"usermeta\": {\n \"embedOptions\": {}\n }\n}"+ "application/vnd.vega.v6+json": "{\n \"$schema\": \"https://vega.github.io/schema/vega-lite/v6.4.1.json\",\n \"config\": {\n \"view\": {\n \"continuousHeight\": 300,\n \"continuousWidth\": 300\n }\n },\n \"data\": {\n \"name\": \"data-a202e5dd04552c98b78a4bc5fc59f367\"\n },\n \"datasets\": {\n \"data-a202e5dd04552c98b78a4bc5fc59f367\": [\n {\n \"x\": 1,\n \"y\": 1\n }\n ]\n },\n \"encoding\": {\n \"x\": {\n \"field\": \"x\",\n \"type\": \"ordinal\"\n },\n \"y\": {\n \"field\": \"y\",\n \"type\": \"quantitative\"\n }\n },\n \"mark\": {\n \"type\": \"circle\"\n },\n \"usermeta\": {\n \"embedOptions\": {}\n }\n}"},"metadata": {},"output_type": "display_data"diff --git a/tests/_data/snapshots/charts_json.txt b/tests/_data/snapshots/charts_json.txtindex b7a84ddd2f..e30246d6e3 100644--- a/tests/_data/snapshots/charts_json.txt+++ b/tests/_data/snapshots/charts_json.txt@@ -1,6 +1,6 @@# boolean{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"view": {"continuousHeight": 300,@@ -160,7 +160,7 @@# date{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"axis": {"grid": false@@ -327,7 +327,7 @@"strokeWidth": 1,"type": "rule"},- "name": "view_08552f810e029e90_2",+ "name": "view_f88a3e6c17252800_2","transform": [{"filter": "datum.some_column != null"@@ -363,7 +363,7 @@"type": "point"},"views": [- "view_08552f810e029e90_2"+ "view_f88a3e6c17252800_2"]}],@@ -372,7 +372,7 @@# datetime{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"axis": {"grid": false@@ -539,7 +539,7 @@"strokeWidth": 1,"type": "rule"},- "name": "view_08552f810e029e90_2",+ "name": "view_f88a3e6c17252800_2","transform": [{"filter": "datum.some_column != null"@@ -575,7 +575,7 @@"type": "point"},"views": [- "view_08552f810e029e90_2"+ "view_f88a3e6c17252800_2"]}],@@ -584,7 +584,7 @@# time{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"axis": {"grid": false@@ -751,7 +751,7 @@"strokeWidth": 1,"type": "rule"},- "name": "view_08552f810e029e90_2",+ "name": "view_f88a3e6c17252800_2","transform": [{"filter": "datum.some_column != null"@@ -787,7 +787,7 @@"type": "point"},"views": [- "view_08552f810e029e90_2"+ "view_f88a3e6c17252800_2"]}],@@ -796,7 +796,7 @@# integer{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"view": {"continuousHeight": 300,@@ -857,7 +857,7 @@# number{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"view": {"continuousHeight": 300,@@ -919,7 +919,7 @@# string{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"axis": {"grid": false@@ -1117,7 +1117,7 @@# string (limit to 10 items){- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"axis": {"grid": false@@ -1321,7 +1321,7 @@# unknown{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"view": {"continuousHeight": 300,diff --git a/tests/_data/snapshots/charts_json_bad_data.txt b/tests/_data/snapshots/charts_json_bad_data.txtindex 3bcc34bb68..9e89fdf79b 100644--- a/tests/_data/snapshots/charts_json_bad_data.txt+++ b/tests/_data/snapshots/charts_json_bad_data.txt@@ -1,5 +1,5 @@{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"axis": {"grid": falsediff --git a/tests/_data/snapshots/column_preview_bool_chart_spec.txt b/tests/_data/snapshots/column_preview_bool_chart_spec.txtindex 0b3ca357dc..55fa1692ce 100644--- a/tests/_data/snapshots/column_preview_bool_chart_spec.txt+++ b/tests/_data/snapshots/column_preview_bool_chart_spec.txt@@ -1,5 +1,5 @@{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"view": {"continuousHeight": 300,diff --git a/tests/_data/snapshots/column_preview_bool_chart_spec_with_vegafusion.txt b/tests/_data/snapshots/column_preview_bool_chart_spec_with_vegafusion.txtindex 368ba4e2e6..64623046fa 100644--- a/tests/_data/snapshots/column_preview_bool_chart_spec_with_vegafusion.txt+++ b/tests/_data/snapshots/column_preview_bool_chart_spec_with_vegafusion.txt@@ -99,7 +99,7 @@"scale": "theta"},"tooltip": {- "signal": "{\"bool_col\": isValid(datum[\"bool_col\"]) ? datum[\"bool_col\"] : \"\"+datum[\"bool_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"bool_col\": isValid(datum[\"bool_col\"]) ? isArray(datum[\"bool_col\"]) ? join(datum[\"bool_col\"], '\\n') : datum[\"bool_col\"] : \"\"+datum[\"bool_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"mult": 0.5,@@ -146,7 +146,7 @@"signal": "scale(\"theta\", 0.5 * datum[\"count_start\"] + 0.5 * datum[\"count_end\"])"},"tooltip": {- "signal": "{\"bool_col\": isValid(datum[\"bool_col\"]) ? datum[\"bool_col\"] : \"\"+datum[\"bool_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"bool_col\": isValid(datum[\"bool_col\"]) ? isArray(datum[\"bool_col\"]) ? join(datum[\"bool_col\"], '\\n') : datum[\"bool_col\"] : \"\"+datum[\"bool_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"mult": 0.5,diff --git a/tests/_data/snapshots/column_preview_categorical_chart_spec.txt b/tests/_data/snapshots/column_preview_categorical_chart_spec.txtindex 51e5a4d2e3..7589028037 100644--- a/tests/_data/snapshots/column_preview_categorical_chart_spec.txt+++ b/tests/_data/snapshots/column_preview_categorical_chart_spec.txt@@ -1,5 +1,5 @@{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"axis": {"grid": falsediff --git a/tests/_data/snapshots/column_preview_categorical_chart_spec_with_vegafusion.txt b/tests/_data/snapshots/column_preview_categorical_chart_spec_with_vegafusion.txtindex 80c9319efe..2f781ed27e 100644--- a/tests/_data/snapshots/column_preview_categorical_chart_spec_with_vegafusion.txt+++ b/tests/_data/snapshots/column_preview_categorical_chart_spec_with_vegafusion.txt@@ -96,7 +96,7 @@"signal": "max(0.25, bandwidth('y'))"},"tooltip": {- "signal": "{\"category_col\": isValid(datum[\"category_col\"]) ? datum[\"category_col\"] : \"\"+datum[\"category_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"category_col\": isValid(datum[\"category_col\"]) ? isArray(datum[\"category_col\"]) ? join(datum[\"category_col\"], '\\n') : datum[\"category_col\"] : \"\"+datum[\"category_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"field": "count_end",@@ -140,7 +140,7 @@"signal": "format(datum[\"percentage\"], \".2%\")"},"tooltip": {- "signal": "{\"category_col\": isValid(datum[\"category_col\"]) ? datum[\"category_col\"] : \"\"+datum[\"category_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"category_col\": isValid(datum[\"category_col\"]) ? isArray(datum[\"category_col\"]) ? join(datum[\"category_col\"], '\\n') : datum[\"category_col\"] : \"\"+datum[\"category_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"field": "count",diff --git a/tests/_data/snapshots/column_preview_duckdb_bool_chart_spec.txt b/tests/_data/snapshots/column_preview_duckdb_bool_chart_spec.txtindex 2c4f63dccf..5f0ea88e7b 100644--- a/tests/_data/snapshots/column_preview_duckdb_bool_chart_spec.txt+++ b/tests/_data/snapshots/column_preview_duckdb_bool_chart_spec.txt@@ -102,7 +102,7 @@"scale": "theta"},"tooltip": {- "signal": "{\"bool_col\": isValid(datum[\"bool_col\"]) ? datum[\"bool_col\"] : \"\"+datum[\"bool_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"bool_col\": isValid(datum[\"bool_col\"]) ? isArray(datum[\"bool_col\"]) ? join(datum[\"bool_col\"], '\\n') : datum[\"bool_col\"] : \"\"+datum[\"bool_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"mult": 0.5,@@ -149,7 +149,7 @@"signal": "scale(\"theta\", 0.5 * datum[\"count_start\"] + 0.5 * datum[\"count_end\"])"},"tooltip": {- "signal": "{\"bool_col\": isValid(datum[\"bool_col\"]) ? datum[\"bool_col\"] : \"\"+datum[\"bool_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"bool_col\": isValid(datum[\"bool_col\"]) ? isArray(datum[\"bool_col\"]) ? join(datum[\"bool_col\"], '\\n') : datum[\"bool_col\"] : \"\"+datum[\"bool_col\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"mult": 0.5,diff --git a/tests/_data/snapshots/column_preview_duckdb_categorical_chart_spec.txt b/tests/_data/snapshots/column_preview_duckdb_categorical_chart_spec.txtindex c83516046b..faaba167b6 100644--- a/tests/_data/snapshots/column_preview_duckdb_categorical_chart_spec.txt+++ b/tests/_data/snapshots/column_preview_duckdb_categorical_chart_spec.txt@@ -129,7 +129,7 @@"signal": "max(0.25, bandwidth('y'))"},"tooltip": {- "signal": "{\"category\": isValid(datum[\"category\"]) ? datum[\"category\"] : \"\"+datum[\"category\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"category\": isValid(datum[\"category\"]) ? isArray(datum[\"category\"]) ? join(datum[\"category\"], '\\n') : datum[\"category\"] : \"\"+datum[\"category\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"field": "count_end",@@ -173,7 +173,7 @@"signal": "format(datum[\"percentage\"], \".2%\")"},"tooltip": {- "signal": "{\"category\": isValid(datum[\"category\"]) ? datum[\"category\"] : \"\"+datum[\"category\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"category\": isValid(datum[\"category\"]) ? isArray(datum[\"category\"]) ? join(datum[\"category\"], '\\n') : datum[\"category\"] : \"\"+datum[\"category\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"field": "count",diff --git a/tests/_data/snapshots/column_preview_float_chart_spec.txt b/tests/_data/snapshots/column_preview_float_chart_spec.txtindex 1ed75ac0c5..dc5390ab9c 100644--- a/tests/_data/snapshots/column_preview_float_chart_spec.txt+++ b/tests/_data/snapshots/column_preview_float_chart_spec.txt@@ -1,5 +1,5 @@{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"view": {"continuousHeight": 300,diff --git a/tests/_data/snapshots/column_preview_float_chart_spec_with_vegafusion.txt b/tests/_data/snapshots/column_preview_float_chart_spec_with_vegafusion.txtindex 59744e97c3..151f65e7f3 100644--- a/tests/_data/snapshots/column_preview_float_chart_spec_with_vegafusion.txt+++ b/tests/_data/snapshots/column_preview_float_chart_spec_with_vegafusion.txt@@ -96,7 +96,7 @@"value": "#8e4ec6"},"tooltip": {- "signal": "{\"float_col\": !isValid(datum[\"bin_maxbins_10_float_col\"]) || !isFinite(+datum[\"bin_maxbins_10_float_col\"]) ? \"null\" : format(datum[\"bin_maxbins_10_float_col\"], \",.2f\") + \" \u2013 \" + format(datum[\"bin_maxbins_10_float_col_end\"], \",.2f\"), \"Number of records\": format(datum[\"__count\"], \",.0f\")}"+ "signal": "{\"float_col\": !isValid(datum[\"bin_maxbins_10_float_col\"]) || !isFinite(+datum[\"bin_maxbins_10_float_col\"]) ? \"null\" : format(datum[\"bin_maxbins_10_float_col\"], \",.2f\") + \" – \" + format(datum[\"bin_maxbins_10_float_col_end\"], \",.2f\"), \"Number of records\": format(datum[\"__count\"], \",.0f\")}"},"x": {"field": "bin_maxbins_10_float_col_end",diff --git a/tests/_data/snapshots/column_preview_int_chart_spec.txt b/tests/_data/snapshots/column_preview_int_chart_spec.txtindex 2897b87e1b..8396e01805 100644--- a/tests/_data/snapshots/column_preview_int_chart_spec.txt+++ b/tests/_data/snapshots/column_preview_int_chart_spec.txt@@ -1,5 +1,5 @@{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"view": {"continuousHeight": 300,diff --git a/tests/_data/snapshots/column_preview_int_chart_spec_with_vegafusion.txt b/tests/_data/snapshots/column_preview_int_chart_spec_with_vegafusion.txtindex 0f5ab44d96..ef7f281ca9 100644--- a/tests/_data/snapshots/column_preview_int_chart_spec_with_vegafusion.txt+++ b/tests/_data/snapshots/column_preview_int_chart_spec_with_vegafusion.txt@@ -96,7 +96,7 @@"value": "#8e4ec6"},"tooltip": {- "signal": "{\"A\": !isValid(datum[\"bin_maxbins_10_A\"]) || !isFinite(+datum[\"bin_maxbins_10_A\"]) ? \"null\" : format(datum[\"bin_maxbins_10_A\"], \"\") + \" \u2013 \" + format(datum[\"bin_maxbins_10_A_end\"], \"\"), \"Number of records\": format(datum[\"__count\"], \",.0f\")}"+ "signal": "{\"A\": !isValid(datum[\"bin_maxbins_10_A\"]) || !isFinite(+datum[\"bin_maxbins_10_A\"]) ? \"null\" : format(datum[\"bin_maxbins_10_A\"], \"\") + \" – \" + format(datum[\"bin_maxbins_10_A_end\"], \"\"), \"Number of records\": format(datum[\"__count\"], \",.0f\")}"},"x": {"field": "bin_maxbins_10_A_end",diff --git a/tests/_data/snapshots/column_preview_str_chart_spec.txt b/tests/_data/snapshots/column_preview_str_chart_spec.txtindex 634a65590b..c3490476cb 100644--- a/tests/_data/snapshots/column_preview_str_chart_spec.txt+++ b/tests/_data/snapshots/column_preview_str_chart_spec.txt@@ -1,5 +1,5 @@{- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","config": {"axis": {"grid": falsediff --git a/tests/_data/snapshots/column_preview_str_chart_spec_with_vegafusion.txt b/tests/_data/snapshots/column_preview_str_chart_spec_with_vegafusion.txtindex 14f96e08bb..65cf643bb2 100644--- a/tests/_data/snapshots/column_preview_str_chart_spec_with_vegafusion.txt+++ b/tests/_data/snapshots/column_preview_str_chart_spec_with_vegafusion.txt@@ -81,7 +81,7 @@"signal": "max(0.25, bandwidth('y'))"},"tooltip": {- "signal": "{\"B\": isValid(datum[\"B\"]) ? datum[\"B\"] : \"\"+datum[\"B\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"B\": isValid(datum[\"B\"]) ? isArray(datum[\"B\"]) ? join(datum[\"B\"], '\\n') : datum[\"B\"] : \"\"+datum[\"B\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"field": "count_end",@@ -125,7 +125,7 @@"signal": "format(datum[\"percentage\"], \".2%\")"},"tooltip": {- "signal": "{\"B\": isValid(datum[\"B\"]) ? datum[\"B\"] : \"\"+datum[\"B\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"+ "signal": "{\"B\": isValid(datum[\"B\"]) ? isArray(datum[\"B\"]) ? join(datum[\"B\"], '\\n') : datum[\"B\"] : \"\"+datum[\"B\"], \"Number of records\": format(datum[\"count\"], \",.0f\")}"},"x": {"field": "count",diff --git a/tests/_plugins/ui/_impl/snapshots/parse_spec_duckdb.txt b/tests/_plugins/ui/_impl/snapshots/parse_spec_duckdb.txtindex 431e29d7a2..1ddd23152d 100644--- a/tests/_plugins/ui/_impl/snapshots/parse_spec_duckdb.txt+++ b/tests/_plugins/ui/_impl/snapshots/parse_spec_duckdb.txt@@ -20,5 +20,5 @@"type": "quantitative"}},- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json"+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json"}\ No newline at end of filediff --git a/tests/_plugins/ui/_impl/snapshots/parse_spec_geopandas.txt b/tests/_plugins/ui/_impl/snapshots/parse_spec_geopandas.txtindex f0f60f5191..afd002f5ca 100644--- a/tests/_plugins/ui/_impl/snapshots/parse_spec_geopandas.txt+++ b/tests/_plugins/ui/_impl/snapshots/parse_spec_geopandas.txt@@ -21,7 +21,7 @@"type": "nominal"}},- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json",+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json","datasets": {"data-cc0a8311b413c4168b2c1fac768ce667": [{diff --git a/tests/_plugins/ui/_impl/snapshots/parse_spec_narwhal.txt b/tests/_plugins/ui/_impl/snapshots/parse_spec_narwhal.txtindex cff423633f..4e4a68f141 100644--- a/tests/_plugins/ui/_impl/snapshots/parse_spec_narwhal.txt+++ b/tests/_plugins/ui/_impl/snapshots/parse_spec_narwhal.txt@@ -20,5 +20,5 @@"type": "quantitative"}},- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json"+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json"}\ No newline at end of filediff --git a/tests/_plugins/ui/_impl/snapshots/parse_spec_pandas.txt b/tests/_plugins/ui/_impl/snapshots/parse_spec_pandas.txtindex cff423633f..4e4a68f141 100644--- a/tests/_plugins/ui/_impl/snapshots/parse_spec_pandas.txt+++ b/tests/_plugins/ui/_impl/snapshots/parse_spec_pandas.txt@@ -20,5 +20,5 @@"type": "quantitative"}},- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json"+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json"}\ No newline at end of filediff --git a/tests/_plugins/ui/_impl/snapshots/parse_spec_polars.txt b/tests/_plugins/ui/_impl/snapshots/parse_spec_polars.txtindex cff423633f..4e4a68f141 100644--- a/tests/_plugins/ui/_impl/snapshots/parse_spec_polars.txt+++ b/tests/_plugins/ui/_impl/snapshots/parse_spec_polars.txt@@ -20,5 +20,5 @@"type": "quantitative"}},- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json"+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json"}\ No newline at end of filediff --git a/tests/_plugins/ui/_impl/snapshots/parse_spec_url.txt b/tests/_plugins/ui/_impl/snapshots/parse_spec_url.txtindex 8b85681afe..4b0d08f344 100644--- a/tests/_plugins/ui/_impl/snapshots/parse_spec_url.txt+++ b/tests/_plugins/ui/_impl/snapshots/parse_spec_url.txt@@ -17,5 +17,5 @@"type": "quantitative"}},- "$schema": "https://vega.github.io/schema/vega-lite/v6.1.0.json"+ "$schema": "https://vega.github.io/schema/vega-lite/v6.4.1.json"}\ No newline at end of file