Show More
formatting.ipynb
138 lines
| 3.1 KiB
| text/plain
|
TextLexer
|
r4634 | { | |
|
r5782 | "metadata": { | |
"name": "formatting" | |||
|
r6035 | }, | |
"nbformat": 3, | |||
|
r7739 | "nbformat_minor": 0, | |
|
r5782 | "worksheets": [ | |
{ | |||
"cells": [ | |||
{ | |||
|
r6035 | "cell_type": "markdown", | |
|
r7739 | "metadata": {}, | |
|
r5782 | "source": [ | |
|
r7739 | "# Examples of basic formatting in the notebook\n", | |
"\n", | |||
"Normal and formatted text cells such as this one use the \n", | |||
"[Markdown](http://daringfireball.net/projects/markdown/basics) syntax.\n", | |||
"\n", | |||
"\n", | |||
"# Title (h1)\n", | |||
"\n", | |||
"## Heading (h2)\n", | |||
"\n", | |||
"### Heading (h3)\n", | |||
"\n", | |||
"Here is a paragraph of text.\n", | |||
"\n", | |||
"* One.\n", | |||
" - Sublist\n", | |||
" - Here we go\n", | |||
" - Sublist\n", | |||
" - Here we go\n", | |||
" - Here we go\n", | |||
"* Two.\n", | |||
" - Sublist\n", | |||
"* Three.\n", | |||
" - Sublist\n", | |||
"\n", | |||
"Now another list:\n", | |||
"\n", | |||
"---\n", | |||
"\n", | |||
"1. Here we go\n", | |||
" 1. Sublist\n", | |||
" 2. Sublist\n", | |||
"2. There we go\n", | |||
"3. Now this\n", | |||
"\n", | |||
"And another paragraph.\n", | |||
"\n", | |||
"### Heading (h3)\n", | |||
"\n", | |||
"#### Heading (h4)\n", | |||
"\n", | |||
"##### Heading (h5)\n", | |||
"\n", | |||
"###### Heading (h6)\n", | |||
"\n", | |||
|
r5782 | "## Heading (h2)" | |
] | |||
|
r6035 | }, | |
|
r5782 | { | |
|
r6035 | "cell_type": "markdown", | |
|
r7739 | "metadata": {}, | |
|
r5782 | "source": [ | |
|
r7739 | "# Heading (h1)\n", | |
"\n", | |||
"## Heading (h2)\n", | |||
"\n", | |||
"### Heading (h3)\n", | |||
"\n", | |||
"#### Heading (h4)\n", | |||
"\n", | |||
"##### Heading (h5)\n", | |||
"\n", | |||
"###### Heading (h6)\n", | |||
"\n", | |||
"Now for a simple code example:\n", | |||
"\n", | |||
" for i in range(10):\n", | |||
" print i\n", | |||
"\n", | |||
|
r5782 | "Now more text" | |
] | |||
|
r6035 | }, | |
|
r5782 | { | |
|
r7739 | "cell_type": "heading", | |
"level": 1, | |||
"metadata": {}, | |||
|
r5782 | "source": [ | |
|
r7739 | "This is a Heading Cell (level 1)" | |
] | |||
}, | |||
{ | |||
"cell_type": "heading", | |||
"level": 4, | |||
"metadata": {}, | |||
"source": [ | |||
"This is a Heading Cell (level 4)" | |||
|
r5782 | ] | |
|
r6035 | }, | |
|
r5782 | { | |
|
r7739 | "cell_type": "markdown", | |
"metadata": {}, | |||
"source": [ | |||
"## Heading (h2)\n", | |||
"\n", | |||
"Here is text.\n", | |||
"\n", | |||
"> This is a *block* quote. This is a block quote. This is a block quote. \n", | |||
"> This is a **block** quote. This is a block quote. This is a block quote. \n", | |||
"> This is a `block` quote. This is a block quote. This is a block quote. \n", | |||
"> This is a block quote. This is a block quote. This is a block quote. \n", | |||
"> This is a block quote. This is a block quote. This is a block quote. \n", | |||
"> This is a block quote. This is a block quote. This is a block quote. \n", | |||
"\n", | |||
"Here is text\n", | |||
"\n", | |||
"<table>\n", | |||
"<tr>\n", | |||
"<th>Header 1</th>\n", | |||
"<th>Header 2</th>\n", | |||
"</tr>\n", | |||
"<tr>\n", | |||
"<td>row 1, cell 1</td>\n", | |||
"<td>row 1, cell 2</td>\n", | |||
"</tr>\n", | |||
"<tr>\n", | |||
"<td>row 2, cell 1</td>\n", | |||
"<td>row 2, cell 2</td>\n", | |||
"</tr>\n", | |||
"</table>" | |||
] | |||
|
r5782 | } | |
|
r7739 | ], | |
"metadata": {} | |||
|
r5782 | } | |
] | |||
|
r4634 | } |