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
feat: updates to row viewer panel (#4866)
Shahmir Varqhaaa3a7f6403c0
diff --git a/frontend/src/components/data-table/TableActions.tsx b/frontend/src/components/data-table/TableActions.tsxindex 74c774970c..e907a456c7 100644--- a/frontend/src/components/data-table/TableActions.tsx+++ b/frontend/src/components/data-table/TableActions.tsx@@ -27,8 +27,8 @@ interface TableActionsProps<TData> {getRowIds?: GetRowIds;toggleDisplayHeader?: () => void;chartsFeatureEnabled?: boolean;- toggleSelectionPanel?: () => void;- isSelectionPanelOpen?: boolean;+ toggleRowViewerPanel?: () => void;+ isRowViewerPanelOpen?: boolean;}export const TableActions = <TData,>({@@ -45,8 +45,8 @@ export const TableActions = <TData,>({getRowIds,toggleDisplayHeader,chartsFeatureEnabled,- toggleSelectionPanel,- isSelectionPanelOpen,+ toggleRowViewerPanel,+ isRowViewerPanelOpen,}: TableActionsProps<TData>) => {const handleSelectAllRows = (value: boolean) => {if (!onRowSelectionChange) {@@ -118,13 +118,13 @@ export const TableActions = <TData,>({</Button></Tooltip>)}- {toggleSelectionPanel && (- <Tooltip content="Toggle selection panel">- <Button variant="text" size="xs" onClick={toggleSelectionPanel}>+ {toggleRowViewerPanel && (+ <Tooltip content="Toggle row viewer">+ <Button variant="text" size="xs" onClick={toggleRowViewerPanel}><PanelRightIconclassName={cn("w-4 h-4 text-muted-foreground",- isSelectionPanelOpen && "text-primary",+ isRowViewerPanelOpen && "text-primary",)}/></Button>diff --git a/frontend/src/components/data-table/data-table.tsx b/frontend/src/components/data-table/data-table.tsxindex 9950dab3ab..f7b7a7675a 100644--- a/frontend/src/components/data-table/data-table.tsx+++ b/frontend/src/components/data-table/data-table.tsx@@ -79,8 +79,8 @@ interface DataTableProps<TData> extends Partial<DownloadActionProps> {onFocusRowChange?: OnChangeFn<number>;// OtherschartsFeatureEnabled?: boolean;- toggleSelectionPanel?: () => void;- isSelectionPanelOpen?: boolean;+ toggleRowViewerPanel?: () => void;+ isRowViewerPanelOpen?: boolean;}const DataTableInternal = <TData,>({@@ -116,8 +116,8 @@ const DataTableInternal = <TData,>({freezeColumnsRight,toggleDisplayHeader,chartsFeatureEnabled,- toggleSelectionPanel,- isSelectionPanelOpen,+ toggleRowViewerPanel,+ isRowViewerPanelOpen,onFocusRowChange,}: DataTableProps<TData>) => {const [isSearchEnabled, setIsSearchEnabled] = React.useState<boolean>(false);@@ -229,7 +229,7 @@ const DataTableInternal = <TData,>({{renderTableBody(table,columns,- isSelectionPanelOpen,+ isRowViewerPanelOpen,getPaginatedRowIndex,)}</Table>@@ -248,8 +248,8 @@ const DataTableInternal = <TData,>({getRowIds={getRowIds}toggleDisplayHeader={toggleDisplayHeader}chartsFeatureEnabled={chartsFeatureEnabled}- toggleSelectionPanel={toggleSelectionPanel}- isSelectionPanelOpen={isSelectionPanelOpen}+ toggleRowViewerPanel={toggleRowViewerPanel}+ isRowViewerPanelOpen={isRowViewerPanelOpen}/></div>);diff --git a/frontend/src/components/data-table/selection-panel/__tests__/filter-rows.test.ts b/frontend/src/components/data-table/row-viewer-panel/__tests__/filter-rows.test.tssimilarity index 97%rename from frontend/src/components/data-table/selection-panel/__tests__/filter-rows.test.tsrename to frontend/src/components/data-table/row-viewer-panel/__tests__/filter-rows.test.tsindex 1f06e01eda..0d931a9d08 100644--- a/frontend/src/components/data-table/selection-panel/__tests__/filter-rows.test.ts+++ b/frontend/src/components/data-table/row-viewer-panel/__tests__/filter-rows.test.ts@@ -1,7 +1,7 @@/* Copyright 2024 Marimo. All rights reserved. */import { describe, expect, it } from "vitest";-import { filterRows } from "../data-selection";+import { filterRows } from "../row-viewer";describe("filterRows", () => {const defaultRowValues = {diff --git a/frontend/src/components/data-table/selection-panel/__tests__/data-selection.test.tsx b/frontend/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsxsimilarity index 88%rename from frontend/src/components/data-table/selection-panel/__tests__/data-selection.test.tsxrename to frontend/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsxindex edbc4372d4..ce6367a4c1 100644--- a/frontend/src/components/data-table/selection-panel/__tests__/data-selection.test.tsx+++ b/frontend/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx@@ -2,7 +2,7 @@import { describe, expect, it, vi } from "vitest";import { render, screen } from "@testing-library/react";-import { DataSelectionPanel } from "../data-selection";+import { RowViewerPanel } from "../row-viewer";import { Provider } from "jotai";import { TooltipProvider } from "@/components/ui/tooltip";import type { GetRowResult } from "@/plugins/impl/DataTablePlugin";@@ -16,7 +16,7 @@ const renderWithProviders = (component: React.ReactNode) => {);};-describe("DataSelectionPanel", () => {+describe("RowExpandedPanel", () => {const mockFieldTypes: FieldTypesWithExternalType = [["name", ["string", "string"]],["age", ["number", "number"]],@@ -35,9 +35,9 @@ describe("DataSelectionPanel", () => {const mockSetRowIdx = vi.fn();- it("renders data in selection panel", async () => {+ it("renders data in row viewer panel", async () => {renderWithProviders(- <DataSelectionPanel+ <RowViewerPanelrowIdx={0}setRowIdx={mockSetRowIdx}totalRows={3}diff --git a/frontend/src/components/data-table/selection-panel/data-selection.tsx b/frontend/src/components/data-table/row-viewer-panel/row-viewer.tsxsimilarity index 90%rename from frontend/src/components/data-table/selection-panel/data-selection.tsxrename to frontend/src/components/data-table/row-viewer-panel/row-viewer.tsxindex 0c8ca2a415..d3d3980d04 100644--- a/frontend/src/components/data-table/selection-panel/data-selection.tsx+++ b/frontend/src/components/data-table/row-viewer-panel/row-viewer.tsx@@ -21,7 +21,7 @@ import {import { DATA_TYPE_ICON } from "@/components/datasets/icons";import { Input } from "@/components/ui/input";import { CopyClipboardIcon } from "@/components/icons/copy-icon";-import { useState } from "react";+import { useState, useRef } from "react";import { useAsyncData } from "@/hooks/useAsyncData";import {INDEX_COLUMN_NAME,@@ -34,8 +34,9 @@ import { NAMELESS_COLUMN_PREFIX } from "../columns";import { Banner, ErrorBanner } from "@/plugins/impl/common/error-banner";import type { Column } from "@tanstack/react-table";import { renderCellValue } from "../columns";+import { useKeydownOnElement } from "@/hooks/useHotkey";-export interface DataSelectionPanelProps {+export interface RowViewerPanelProps {rowIdx: number;setRowIdx: (rowIdx: number) => void;totalRows: number;@@ -43,14 +44,16 @@ export interface DataSelectionPanelProps {getRow: (rowIdx: number) => Promise<GetRowResult>;}-export const DataSelectionPanel: React.FC<DataSelectionPanelProps> = ({+export const RowViewerPanel: React.FC<RowViewerPanelProps> = ({rowIdx,setRowIdx,totalRows,fieldTypes,getRow,-}: DataSelectionPanelProps) => {+}: RowViewerPanelProps) => {const [searchQuery, setSearchQuery] = useState("");+ const panelRef = useRef<HTMLDivElement>(null);+ const searchInputRef = useRef<HTMLInputElement>(null);const { data: rows, error } = useAsyncData(async () => {const data = await getRow(rowIdx);@@ -64,6 +67,21 @@ export const DataSelectionPanel: React.FC<DataSelectionPanelProps> = ({setRowIdx(rowIdx);};+ useKeydownOnElement(panelRef, {+ ArrowLeft: (e) => {+ if (e?.target === searchInputRef.current) {+ return false;+ }+ handleSelectRow(rowIdx - 1);+ },+ ArrowRight: (e) => {+ if (e?.target === searchInputRef.current) {+ return false;+ }+ handleSelectRow(rowIdx + 1);+ },+ });+const buttonStyles = "h-6 w-6 p-0.5";const renderTable = () => {@@ -125,7 +143,7 @@ export const DataSelectionPanel: React.FC<DataSelectionPanelProps> = ({const filteredRows = filterRows(rowValues, searchQuery);return (- <Table>+ <Table className="mb-4"><TableHeader><TableRow><TableHead className="w-1/4">Column</TableHead>@@ -188,7 +206,11 @@ export const DataSelectionPanel: React.FC<DataSelectionPanelProps> = ({};return (- <div className="flex flex-col gap-3 mt-4">+ <div+ className="flex flex-col gap-3 mt-4 focus:outline-none"+ ref={panelRef}+ tabIndex={-1}+ ><div className="flex flex-row gap-2 justify-end items-center mr-2"><Buttonvariant="outline"@@ -236,6 +258,7 @@ export const DataSelectionPanel: React.FC<DataSelectionPanelProps> = ({<div className="mx-2 -mb-1"><Input+ ref={searchInputRef}type="text"placeholder="Search"onChange={(e) => setSearchQuery(e.target.value)}diff --git a/frontend/src/components/data-table/row-viewer-panel/use-panel-ownership.ts b/frontend/src/components/data-table/row-viewer-panel/use-panel-ownership.tsnew file mode 100644index 0000000000..9620764b5b--- /dev/null+++ b/frontend/src/components/data-table/row-viewer-panel/use-panel-ownership.ts@@ -0,0 +1,92 @@+/* Copyright 2024 Marimo. All rights reserved. */+import { useAtom, useAtomValue } from "jotai";+import { Logger } from "@/utils/Logger";+import type { CellId } from "@/core/cells/ids";+import {+ contextAwarePanelOpen,+ contextAwarePanelOwner,+ isCellAwareAtom,+} from "@/components/editor/chrome/panels/context-aware-panel/atoms";+import { lastFocusedCellIdAtom } from "@/core/cells/focus";++interface PanelOwnershipResult {+ isPanelOpen: boolean;+ togglePanel: () => void;+}++export function usePanelOwnership(+ id: string,+ cellId?: CellId | null,+): PanelOwnershipResult {+ let isPanelCellAware = useAtomValue(isCellAwareAtom);+ const [lastFocusedCellId, setLastFocusedCellId] = useAtom(+ lastFocusedCellIdAtom,+ );+ const [panelOwner, setPanelOwner] = useAtom(contextAwarePanelOwner);+ const [isContextAwarePanelOpen, setContextAwarePanelOpen] = useAtom(+ contextAwarePanelOpen,+ );+ const panelId = getPanelId(id, cellId);++ if (!cellId && isPanelCellAware) {+ Logger.error("CellId is not found, defaulting to fixed mode");+ isPanelCellAware = false;+ }++ const isPanelOpen = panelOwner === panelId && isContextAwarePanelOpen;++ const thisCellIsFocused = lastFocusedCellId === cellId;+ const currentOwnerIsInThisCell =+ panelOwner && isPanelOwner(panelOwner, cellId);++ // In cell-aware mode, update panel owner when cell is focused+ // Only set panel owner if no other table in this cell is currently the owner+ if (+ isPanelCellAware &&+ thisCellIsFocused &&+ panelOwner !== panelId &&+ !currentOwnerIsInThisCell+ ) {+ setPanelOwner(panelId);+ }++ function togglePanel() {+ if (isPanelOpen) {+ setPanelOwner(null);+ setContextAwarePanelOpen(false);+ } else {+ setPanelOwner(panelId);+ // if cell-aware, we want to focus on this cell when toggled open+ if (isPanelCellAware && cellId) {+ setLastFocusedCellId(cellId);+ }+ setContextAwarePanelOpen(true);+ }+ }++ return {+ isPanelOpen: isPanelOpen,+ togglePanel: togglePanel,+ };+}++/**+ * Get the unique ID for the panel based on the cell ID.+ * If the cell ID is not provided, the panel ID is just the table ID.+ */+function getPanelId(id: string, cellId?: CellId | null) {+ if (cellId) {+ return `${cellId}-${id}`;+ }+ return id;+}++/**+ * Check if the panel is owned by the cell.+ */+function isPanelOwner(panelId: string, cellId?: CellId | null) {+ if (cellId) {+ return panelId.startsWith(cellId);+ }+ return false;+}diff --git a/frontend/src/components/editor/chrome/panels/context-aware-panel/atoms.ts b/frontend/src/components/editor/chrome/panels/context-aware-panel/atoms.tsnew file mode 100644index 0000000000..f0e1faa615--- /dev/null+++ b/frontend/src/components/editor/chrome/panels/context-aware-panel/atoms.ts@@ -0,0 +1,25 @@+/* Copyright 2024 Marimo. All rights reserved. */++import { atom } from "jotai";++/**+ * Unique ID of the owner rendering the context-aware panel.+ */+export const contextAwarePanelOwner = atom<string | null>(null);++/**+ * If true, the panel is open.+ */+export const contextAwarePanelOpen = atom<boolean>(false);++/**+ * If true, the panel is treated as part of the editor.+ * When false, the panel overlays the editor content.+ */+export const isPinnedAtom = atom<boolean>(false);++/**+ * If true, the panel is cell-aware and will switch content based on the focused cell.+ * Else, user needs to manually trigger content switch.+ */+export const isCellAwareAtom = atom<boolean>(false);diff --git a/frontend/src/components/editor/chrome/panels/context-aware-panel.tsx b/frontend/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsxsimilarity index 68%rename from frontend/src/components/editor/chrome/panels/context-aware-panel.tsxrename to frontend/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsxindex 6b8868ad2d..c5ad54f2cd 100644--- a/frontend/src/components/editor/chrome/panels/context-aware-panel.tsx+++ b/frontend/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx@@ -5,39 +5,48 @@ import { Fill, Slot, useSlot } from "@marimo-team/react-slotz";import { useAtom } from "jotai";import type { PropsWithChildren } from "react";import { PanelResizeHandle, Panel } from "react-resizable-panels";-import {- contextAwarePanelOwner,- isContextAwarePanelPinnedAtom,-} from "../state";-import { handleDragging } from "../wrapper/utils";+import { handleDragging } from "../../wrapper/utils";import { useResizeHandle } from "@/hooks/useResizeHandle";-import { PinIcon, PinOffIcon, XIcon } from "lucide-react";+import { PinIcon, PinOffIcon, XIcon, CrosshairIcon } from "lucide-react";import { Tooltip } from "@/components/ui/tooltip";import { Button } from "@/components/ui/button";import { Toggle } from "@/components/ui/toggle";-import { ErrorBoundary } from "../../boundary/ErrorBoundary";+import { ErrorBoundary } from "../../../boundary/ErrorBoundary";+import { cn } from "@/utils/cn";+import {+ contextAwarePanelOwner,+ isCellAwareAtom,+ isPinnedAtom,+ contextAwarePanelOpen,+} from "./atoms";export const ContextAwarePanel: React.FC = () => {const [owner, setOwner] = useAtom(contextAwarePanelOwner);- const [isPinned, setIsPinned] = useAtom(isContextAwarePanelPinnedAtom);- const closePanel = () => setOwner(null);+ const [isPanelOpen, setIsPanelOpen] = useAtom(contextAwarePanelOpen);+ const [isPinned, setIsPinned] = useAtom(isPinnedAtom);+ const [isCellAware, setIsCellAware] = useAtom(isCellAwareAtom);++ const closePanel = () => {+ setOwner(null);+ setIsPanelOpen(false);+ };const slots = useSlot(SlotNames.CONTEXT_AWARE_PANEL);- if (slots.length === 0 || !owner) {+ if (slots.length === 0 || !owner || !isPanelOpen) {return null;}const renderModeToggle = () => {return (- <div className="flex flex-row items-center gap-1">- <Tooltip content={isPinned ? "Unpin" : "Pin panel"}>+ <div className="flex flex-row items-center gap-2">+ <Tooltip content={isPinned ? "Unpin" : "Pin"}><Togglesize="xs"onPressedChange={() => setIsPinned(!isPinned)}pressed={isPinned}- aria-label={isPinned ? "Unpin" : "Pin panel"}+ aria-label={isPinned ? "Unpin" : "Pin"}>{isPinned ? (<PinIcon className="w-4 h-4" />@@ -46,6 +55,18 @@ export const ContextAwarePanel: React.FC = () => {)}</Toggle></Tooltip>+ <Tooltip content={isCellAware ? "Follow focused cell" : "Fixed"}>+ <Toggle+ size="xs"+ onPressedChange={() => setIsCellAware(!isCellAware)}+ pressed={isCellAware}+ aria-label={isCellAware ? "Follow focused cell" : "Fixed"}+ >+ <CrosshairIcon+ className={cn("w-4 h-4", isCellAware && "text-primary")}+ />+ </Toggle>+ </Tooltip></div>);};@@ -83,7 +104,7 @@ export const ContextAwarePanel: React.FC = () => {onDragging={handleDragging}className="resize-handle border-border z-20 no-print border-l"/>- <Panel defaultSize={25} minSize={15}>+ <Panel defaultSize={20} minSize={15} maxSize={80}>{renderBody()}</Panel></>@@ -108,6 +129,7 @@ const ResizableComponent = ({ children }: ResizableComponentProps) => {const { resizableDivRef, handleRefs, style } = useResizeHandle({startingWidth: 400,minWidth: 300,+ maxWidth: 1500,});return (diff --git a/frontend/src/components/editor/chrome/state.ts b/frontend/src/components/editor/chrome/state.tsindex 982c99486d..a6f9569ebe 100644--- a/frontend/src/components/editor/chrome/state.ts+++ b/frontend/src/components/editor/chrome/state.ts@@ -1,6 +1,6 @@/* Copyright 2024 Marimo. All rights reserved. */import { createReducerAndAtoms } from "@/utils/createReducer";-import { atom, useAtomValue } from "jotai";+import { useAtomValue } from "jotai";import type { PanelType } from "./types";import { ZodLocalStorage } from "@/utils/localStorage";import { z } from "zod";@@ -99,17 +99,3 @@ export const exportedForTesting = {createActions,initialState,};--// Context-aware panel--/**- * Unique ID of the owner rendering the context-aware panel.- * If null, the panel is not open.- */-export const contextAwarePanelOwner = atom<string | null>(null);--/**- * If true, the panel is treated as part of the editor.- * When false, the panel overlays the editor content.- */-export const isContextAwarePanelPinnedAtom = atom<boolean>(false);diff --git a/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx b/frontend/src/components/editor/chrome/wrapper/app-chrome.tsxindex 9b1c42a1ed..5fd9b23dc1 100644--- a/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx+++ b/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx@@ -32,7 +32,7 @@ import { ChatPanel } from "@/components/chat/chat-panel";import { TooltipProvider } from "@radix-ui/react-tooltip";import { TracingPanel } from "../panels/tracing-panel";import { SecretsPanel } from "../panels/secrets-panel";-import { ContextAwarePanel } from "../panels/context-aware-panel";+import { ContextAwarePanel } from "../panels/context-aware-panel/context-aware-panel";import { handleDragging } from "./utils";const LazyTerminal = React.lazy(() => import("@/components/terminal/terminal"));diff --git a/frontend/src/plugins/impl/DataTablePlugin.tsx b/frontend/src/plugins/impl/DataTablePlugin.tsxindex 0368899624..c96499f629 100644--- a/frontend/src/plugins/impl/DataTablePlugin.tsx+++ b/frontend/src/plugins/impl/DataTablePlugin.tsx@@ -52,14 +52,15 @@ import {} from "@/components/data-table/filters";import { isStaticNotebook } from "@/core/static/static-state";import { Provider as SlotzProvider } from "@marimo-team/react-slotz";-import { findCellId } from "@/core/cells/ids";+import { type CellId, findCellId } from "@/core/cells/ids";import { slotsController } from "@/core/slots/slots";-import { ContextAwarePanelItem } from "@/components/editor/chrome/panels/context-aware-panel";-import { DataSelectionPanel } from "@/components/data-table/selection-panel/data-selection";-import { Provider, useAtom } from "jotai";-import { contextAwarePanelOwner } from "@/components/editor/chrome/state";+import { ContextAwarePanelItem } from "@/components/editor/chrome/panels/context-aware-panel/context-aware-panel";+import { RowViewerPanel } from "@/components/data-table/row-viewer-panel/row-viewer";+import { usePanelOwnership } from "@/components/data-table/row-viewer-panel/use-panel-ownership";+import { Provider } from "jotai";import { store } from "@/core/state/jotai";import { loadTableData } from "@/components/data-table/utils";+type CsvURL = string;export type TableData<T> = T[] | CsvURL;interface ColumnSummaries<T = unknown> {@@ -317,6 +318,7 @@ interface DataTableProps<T> extends Data<T>, DataTableFunctions {toggleDisplayHeader?: () => void;chartsFeatureEnabled?: boolean;host: HTMLElement;+ cellId?: CellId | null;}export type SetFilters = OnChangeFn<ColumnFiltersState>;@@ -568,6 +570,7 @@ export const LoadingDataTableComponent = memo(toggleDisplayHeader={toggleDisplayHeader}chartsFeatureEnabled={chartsFeatureEnabled}getRow={getRow}+ cellId={cellId}/>);@@ -627,6 +630,7 @@ const DataTableComponent = ({chartsFeatureEnabled,calculate_top_k_rows,getRow,+ cellId,}: DataTableProps<unknown> &DataTableSearchProps & {data: unknown[];@@ -635,6 +639,11 @@ const DataTableComponent = ({}): JSX.Element => {const id = useId();const [focusedRowIdx, setFocusedRowIdx] = useState(0);+ const {+ isPanelOpen: isRowViewerPanelOpen,+ togglePanel: toggleRowViewerPanel,+ } = usePanelOwnership(id, cellId);+const chartSpecModel = useMemo(() => {if (!columnSummaries) {return ColumnChartSpecModel.EMPTY;@@ -692,21 +701,6 @@ const DataTableComponent = ({[value],);- const [selectionPanelOwner, setSelectionPanelOwner] = useAtom(- contextAwarePanelOwner,- );- const isSelectionPanelOpen = selectionPanelOwner === id;-- function toggleSelectionPanel() {- if (isSelectionPanelOpen) {- // Close if panel is open- setSelectionPanelOwner(null);- } else {- // Set the owner to current id, which will cause the panel to open- setSelectionPanelOwner(id);- }- }-const handleRowSelectionChange: OnChangeFn<RowSelectionState> = useEvent((updater) => {if (selection === "single") {@@ -763,9 +757,9 @@ const DataTableComponent = ({1,000,000 rows.</Banner>)}- {isSelectionPanelOpen && (+ {isRowViewerPanelOpen && (<ContextAwarePanelItem>- <DataSelectionPanel+ <RowViewerPanelgetRow={getRow}fieldTypes={memoizedFieldTypes}totalRows={totalRows === "too_many" ? 100 : totalRows}@@ -808,8 +802,8 @@ const DataTableComponent = ({getRowIds={get_row_ids}toggleDisplayHeader={toggleDisplayHeader}chartsFeatureEnabled={chartsFeatureEnabled}- toggleSelectionPanel={toggleSelectionPanel}- isSelectionPanelOpen={isSelectionPanelOpen}+ toggleRowViewerPanel={toggleRowViewerPanel}+ isRowViewerPanelOpen={isRowViewerPanelOpen}onFocusRowChange={(rowIdx) => setFocusedRowIdx(rowIdx)}/></Labeled>