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
improvement: copy stacktrace to clipboard (#3805)
Myles Scolnick66b8b83ee6d5
diff --git a/frontend/src/components/editor/output/MarimoTracebackOutput.tsx b/frontend/src/components/editor/output/MarimoTracebackOutput.tsxindex b705ae236b..0122c9ecdb 100644--- a/frontend/src/components/editor/output/MarimoTracebackOutput.tsx+++ b/frontend/src/components/editor/output/MarimoTracebackOutput.tsx@@ -19,6 +19,7 @@ import {SearchIcon,MessageCircleIcon,HelpCircleIcon,+ CopyIcon,} from "lucide-react";import { useState } from "react";import { useAtomValue } from "jotai";@@ -32,6 +33,7 @@ import {DropdownMenuItem,DropdownMenuTrigger,} from "@/components/ui/dropdown-menu";+import { copyToClipboard } from "@/utils/copy";interface Props {traceback: string;@@ -136,6 +138,18 @@ export const MarimoTracebackOutput = ({<ExternalLinkIcon className="h-3 w-3 ml-auto" /></a></DropdownMenuItem>+ <DropdownMenuItem+ onClick={() => {+ // Strip HTML from the traceback+ const div = document.createElement("div");+ div.innerHTML = traceback;+ const textContent = div.textContent || "";+ copyToClipboard(textContent);+ }}+ >+ <CopyIcon className="h-4 w-4 mr-2" />+ Copy to clipboard+ </DropdownMenuItem></DropdownMenuContent></DropdownMenu></div>