This function takes two GT objects and arranges them side by side in a single HTML output. Optionally, the header (title and subtitle) from one of the tables can be included at the top of the combined layout. The output can be displayed directly in a Jupyter notebook, opened in a browser, or returned as HTML.
Parameters
gt1:GT
The first table to include in the layout. This table will appear on the left side.
gt2:GT
The second table to include in the layout. This table will appear on the right side.
target:Literal['notebook', 'browser'] | None=None
Determines how the combined layout is displayed. Use "notebook" to display in a Jupyter notebook, "browser" to open in a web browser. If None, returns the layout object for automatic rendering. Currently, "save" is not yet implemented.
table_header_from:Literal[1, 2] | None=None
Determines which table’s header (title and subtitle) to include in the combined layout. If set to 1, the header from gt1 will be used. If set to 2, the header from gt2 will be used. If None, no header will be included.
Returns
:GTCombinedLayout
A layout object that automatically renders as HTML in Jupyter notebooks and Quarto documents.