This page displays various AnnData configurations to visually verify the HTML representation.
anndata.settings.repr_html_dataframe_expand = True, DataFrames in obsm/varm show an 'Expand' button. Click to see pandas _repr_html_() output (styled table with zebra striping and hover). Configure pandas display options: pd.set_option('display.max_rows', 10). Column names are shown in the rightmost column (meta column).repr_html_max_field_width (default: 400px). Names exceeding the max width show an ellipsis (...) via CSS text-overflow; hover over truncated names to see the full name in a tooltip.uns['README'] contains a string, a small ⓘ icon appears in the header. Click the icon to open a modal with the README content rendered as markdown. The modal supports: headers (h1-h4), bold/italic, code blocks, inline code, ordered lists (numbered), unordered lists (bulleted), links, tables, and blockquotes. Press Escape or click outside to close.SectionFormatter for the .mod attribute. The mod section shows each modality as an expandable nested AnnData (click the arrow to expand). All standard sections (obs, var, obsm, varm, uns, etc.) work automatically. This example has 3 modalities: RNA (100×50), ATAC (100×30), and Protein (80×20).@register_anndata_namespace decorator registers both the accessor (adata.spatial_demo) AND a section in the HTML repr. The accessor class defines _repr_section_(self, context) which returns a list of FormattedEntry objects. Optional class attributes: section_after (positioning), section_display_name, section_tooltip. This is the recommended pattern for external packages (SpatialData, MuData) to add both functionality and visualization.