Skip to content

Commit 3e85d8e

Browse files
authored
chore: Update VegaFusion version (#81)
1 parent eb45872 commit 3e85d8e

3 files changed

Lines changed: 15 additions & 31 deletions

File tree

deepnote_toolkit/chart/deepnote_chart.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def _create_vf_inline_dataset_from_dataframe(oc_df: oc.DataFrame) -> Any:
6161
from pyspark.sql.pandas.types import to_arrow_schema
6262

6363
spark_df = oc_df.to_native()
64-
return to_arrow_schema(spark_df.schema)
64+
return vegafusion.ExternalDataset(
65+
protocol="spark", schema=to_arrow_schema(spark_df.schema)
66+
)
6567

6668
raise TypeError(f"Unsupported DataFrame type: {oc_df.native_type}")
6769

poetry.lock

Lines changed: 11 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ dependencies = [
127127
# NOTE: 1.7.0 is latest version of vl-convert which ships with Vega 5. In webapp we can't update to Vega 6 due to ESM-only issues
128128
# so we keep vl-convert version pinned as well
129129
"vl-convert-python==1.7.0",
130-
"deepnote-vegafusion>=2.0.8,<3",
130+
"deepnote-vegafusion>=2.1.0,<3",
131131
"matplotlib-inline>=0.1.7,<0.2.0; python_version <= '3.10'", # 0.2.0 is not compatible with matplotlib 3.6.3 on Python <=3.10
132132
"matplotlib-inline>=0.2.1,<0.3.0; python_version >= '3.11'",
133133

0 commit comments

Comments
 (0)