diff --git a/docs/authoring/tables.qmd b/docs/authoring/tables.qmd index 432c1cf81..dc43b61d6 100644 --- a/docs/authoring/tables.qmd +++ b/docs/authoring/tables.qmd @@ -279,7 +279,10 @@ kable(head(cars)) If your code cell produces multiple tables, you can also specify subcaptions and layout using cell options: -```{{r}} +::: {.panel-tabset} +## R + +``` {.r} #| label: tbl-example #| tbl-cap: "Example" #| tbl-subcap: @@ -293,6 +296,22 @@ kable(head(cars)) kable(head(pressure)) ``` +## Python + +``` {.python} +#| label: tbl-example +#| tbl-cap: "Example" +#| tbl-subcap: +#| - "Cars" +#| - "Pressure" +#| layout-ncol: 2 +#| echo: fenced + +Markdown(cars + pressure) +``` + +::: + ## Grid Tables Grid tables are a more advanced type of markdown tables that allow arbitrary block elements (multiple paragraphs, code blocks, lists, etc.). For example: