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(islands): Replace "vega" runtime imports with "vega-loader" to resolve build issues (#5449)
Trevor Manz649c27c98c22
diff --git a/frontend/src/components/data-table/chart-spec-model.tsx b/frontend/src/components/data-table/chart-spec-model.tsxindex 5e5d63287f..520e7052bd 100644--- a/frontend/src/components/data-table/chart-spec-model.tsx+++ b/frontend/src/components/data-table/chart-spec-model.tsx@@ -1,9 +1,9 @@/* Copyright 2024 Marimo. All rights reserved. */import { mint, orange, slate } from "@radix-ui/colors";-// @ts-expect-error vega-typings does not include formats-import { formats } from "vega";import type { TopLevelSpec } from "vega-lite";+// @ts-expect-error vega-typings does not include formats+import { formats } from "vega-loader";import { asRemoteURL } from "@/core/runtime/config";import type { TopLevelFacetedUnitSpec } from "@/plugins/impl/data-explorer/queries/types";import { arrow } from "@/plugins/impl/vega/formats";diff --git a/frontend/src/plugins/impl/vega/vega-component.tsx b/frontend/src/plugins/impl/vega/vega-component.tsxindex 899ab9fb22..2cff876f28 100644--- a/frontend/src/plugins/impl/vega/vega-component.tsx+++ b/frontend/src/plugins/impl/vega/vega-component.tsx@@ -7,7 +7,7 @@ import { type JSX, useMemo, useRef, useState } from "react";import useEvent from "react-use-event-hook";import { type SignalListeners, VegaLite, type View } from "react-vega";// @ts-expect-error vega-typings does not include formats-import { formats } from "vega";+import { formats } from "vega-loader";import { Alert, AlertTitle } from "@/components/ui/alert";import { Tooltip } from "@/components/ui/tooltip";import { useAsyncData } from "@/hooks/useAsyncData";