Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion deepnote_toolkit/chart/deepnote_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def _create_vf_inline_dataset_from_dataframe(oc_df: oc.DataFrame) -> Any:
from pyspark.sql.pandas.types import to_arrow_schema

spark_df = oc_df.to_native()
return to_arrow_schema(spark_df.schema)
return vegafusion.ExternalDataset(
protocol="spark", schema=to_arrow_schema(spark_df.schema)
)

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

Expand Down
40 changes: 11 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ dependencies = [
# 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
# so we keep vl-convert version pinned as well
"vl-convert-python==1.7.0",
"deepnote-vegafusion>=2.0.8,<3",
"deepnote-vegafusion>=2.1.0,<3",
"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
"matplotlib-inline>=0.2.1,<0.3.0; python_version >= '3.11'",

Expand Down
Loading