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
improve: link to error documentation (#4420)
Akshay Agrawalc2e9e7ef13b4
diff --git a/frontend/src/components/editor/links/cell-link.tsx b/frontend/src/components/editor/links/cell-link.tsxindex 60b914d9c2..b301a3efd6 100644--- a/frontend/src/components/editor/links/cell-link.tsx+++ b/frontend/src/components/editor/links/cell-link.tsx@@ -30,7 +30,7 @@ export const CellLink = (props: Props): JSX.Element => {return (<divclassName={cn(- "inline-block cursor-pointer text-[var(--blue-10)] hover:underline",+ "inline-block cursor-pointer text-link hover:underline",className,)}role="link"diff --git a/frontend/src/components/editor/output/MarimoErrorOutput.tsx b/frontend/src/components/editor/output/MarimoErrorOutput.tsxindex 23debebf63..443bfccf74 100644--- a/frontend/src/components/editor/output/MarimoErrorOutput.tsx+++ b/frontend/src/components/editor/output/MarimoErrorOutput.tsx@@ -15,6 +15,8 @@ import { Fragment } from "react";import { CellLinkError } from "../links/cell-link";import type { CellId } from "@/core/cells/ids";import { AutoFixButton } from "../errors/auto-fix";+import { SquareArrowOutUpRightIcon } from "lucide-react";+import { ExternalLink } from "@/components/ui/links";const Tip = (props: {title?: string;@@ -181,6 +183,14 @@ export const MarimoErrorOutput = ({<p className="py-2">Try merging these cells into a single cell to eliminate the cycle.</p>++ <p className="py-2">+ <ExternalLink href="https://links.marimo.app/errors-cycles">+ Learn more at our docs{" "}+ <SquareArrowOutUpRightIcon size="0.75rem" className="inline" />+ </ExternalLink>+ .+ </p></Tip></li>,);@@ -192,6 +202,7 @@ export const MarimoErrorOutput = ({<p className="text-muted-foreground font-medium">This cell redefines variables from other cells.</p>+{multipleDefsErrors.map((error, idx) => (<Fragment key={`multiple-defs-${idx}`}><p className="text-muted-foreground mt-2">{`'${error.name}' was also defined by:`}</p>@@ -220,6 +231,14 @@ export const MarimoErrorOutput = ({function. Alternatively, rename variables to make them private tothis cell by prefixing them with an underscore.</p>++ <p className="py-2">+ <ExternalLink href="https://links.marimo.app/errors-multiple-definitions">+ Learn more at our docs{" "}+ <SquareArrowOutUpRightIcon size="0.75rem" className="inline" />+ </ExternalLink>+ .+ </p></Tip></li>,);@@ -253,6 +272,14 @@ export const MarimoErrorOutput = ({Star imports would also silently add names to globals, which wouldbe incompatible with reactive execution.</p>++ <p className="py-2">+ <ExternalLink href="https://links.marimo.app/errors-import-star">+ Learn more at our docs{" "}+ <SquareArrowOutUpRightIcon size="0.75rem" className="inline" />+ </ExternalLink>+ .+ </p></Tip></li>,);