Skip to content

Commit fa4f734

Browse files
committed
DOC: Add example Markdown content
1 parent edc009f commit fa4f734

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

doc/code-cells.ipynb

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,55 @@
553553
"df"
554554
]
555555
},
556+
{
557+
"cell_type": "markdown",
558+
"metadata": {},
559+
"source": [
560+
"### Markdown Content"
561+
]
562+
},
563+
{
564+
"cell_type": "code",
565+
"execution_count": null,
566+
"metadata": {},
567+
"outputs": [],
568+
"source": [
569+
"from IPython.display import Markdown"
570+
]
571+
},
572+
{
573+
"cell_type": "code",
574+
"execution_count": null,
575+
"metadata": {},
576+
"outputs": [],
577+
"source": [
578+
"md = Markdown(\"\"\"\n",
579+
"# Markdown\n",
580+
"\n",
581+
"It *should* show up as **formatted** text\n",
582+
"with things like [links] and images.\n",
583+
"\n",
584+
"[links]: https://jupyter.org/\n",
585+
"\n",
586+
"![Jupyter notebook icon](images/notebook_icon.png)\n",
587+
"\n",
588+
"## Markdown Extensions\n",
589+
"\n",
590+
"There might also be mathematical equations like\n",
591+
"$a^2 + b^2 = c^2$\n",
592+
"and even tables:\n",
593+
"\n",
594+
"A | B | A and B\n",
595+
"------|-------|--------\n",
596+
"False | False | False\n",
597+
"True | False | False\n",
598+
"False | True | False\n",
599+
"True | True | True\n",
600+
"\n",
601+
"\"\"\")\n",
602+
"md"
603+
]
604+
},
556605
{
557606
"cell_type": "markdown",
558607
"metadata": {},
@@ -671,7 +720,7 @@
671720
"outputs": [],
672721
"source": [
673722
"tabs = w.Tab()\n",
674-
"for idx, obj in enumerate([df, fig, eq, i, slider]):\n",
723+
"for idx, obj in enumerate([df, fig, eq, i, md, slider]):\n",
675724
" out = w.Output()\n",
676725
" with out:\n",
677726
" display(obj)\n",

0 commit comments

Comments
 (0)