Skip to content

Commit

Permalink
DOC: Add example Markdown content
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Jan 28, 2022
1 parent edc009f commit fa4f734
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion doc/code-cells.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,55 @@
"df"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Markdown Content"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from IPython.display import Markdown"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"md = Markdown(\"\"\"\n",
"# Markdown\n",
"\n",
"It *should* show up as **formatted** text\n",
"with things like [links] and images.\n",
"\n",
"[links]: https://jupyter.org/\n",
"\n",
"![Jupyter notebook icon](images/notebook_icon.png)\n",
"\n",
"## Markdown Extensions\n",
"\n",
"There might also be mathematical equations like\n",
"$a^2 + b^2 = c^2$\n",
"and even tables:\n",
"\n",
"A | B | A and B\n",
"------|-------|--------\n",
"False | False | False\n",
"True | False | False\n",
"False | True | False\n",
"True | True | True\n",
"\n",
"\"\"\")\n",
"md"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -671,7 +720,7 @@
"outputs": [],
"source": [
"tabs = w.Tab()\n",
"for idx, obj in enumerate([df, fig, eq, i, slider]):\n",
"for idx, obj in enumerate([df, fig, eq, i, md, slider]):\n",
" out = w.Output()\n",
" with out:\n",
" display(obj)\n",
Expand Down

0 comments on commit fa4f734

Please sign in to comment.