{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# expand the width of a code block and its output\n", "\n", "# expand to full `page` width\n", "\n", "## 1. `::: {.column-page}`\n", "\n", "Use this to wrap a code block to span it and its output to `page` width.\n", "\n", "### Syntax\n", "\n", "```` default\n", "::: {.column-page}\n", "```{.python}\n", "import polars as pl\n", "csv_path = \"./data/tw_taoyuan_cankun_merged_updated.csv\"\n", "df = pl.read_csv(csv_path)\n", "df.head(5)\n", "```\n", ":::\n", "````\n", "\n", "### Example\n", "\n", "``` python\n", "import polars as pl\n", "csv_path = \"./data/tw_taoyuan_cankun_merged_updated.csv\"\n", "df = pl.read_csv(csv_path)\n", "df.head(5)\n", "```\n", "\n", "