##// END OF EJS Templates
use print function in module with `print >>`
use print function in module with `print >>`

File last commit:

r7739:dff285da
r7817:89cac280
Show More
formatting.ipynb
138 lines | 3.1 KiB | text/plain | TextLexer
Brian E. Granger
Converting notebooks to JSON format.
r4634 {
Fernando Perez
Update formatting example nb
r5782 "metadata": {
"name": "formatting"
Brian Granger
Updating example notebooks to v3 format.
r6035 },
"nbformat": 3,
MinRK
rebuild example notebooks...
r7739 "nbformat_minor": 0,
Fernando Perez
Update formatting example nb
r5782 "worksheets": [
{
"cells": [
{
Brian Granger
Updating example notebooks to v3 format.
r6035 "cell_type": "markdown",
MinRK
rebuild example notebooks...
r7739 "metadata": {},
Fernando Perez
Update formatting example nb
r5782 "source": [
MinRK
rebuild example notebooks...
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",
Fernando Perez
Update formatting example nb
r5782 "## Heading (h2)"
]
Brian Granger
Updating example notebooks to v3 format.
r6035 },
Fernando Perez
Update formatting example nb
r5782 {
Brian Granger
Updating example notebooks to v3 format.
r6035 "cell_type": "markdown",
MinRK
rebuild example notebooks...
r7739 "metadata": {},
Fernando Perez
Update formatting example nb
r5782 "source": [
MinRK
rebuild example notebooks...
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",
Fernando Perez
Update formatting example nb
r5782 "Now more text"
]
Brian Granger
Updating example notebooks to v3 format.
r6035 },
Fernando Perez
Update formatting example nb
r5782 {
MinRK
rebuild example notebooks...
r7739 "cell_type": "heading",
"level": 1,
"metadata": {},
Fernando Perez
Update formatting example nb
r5782 "source": [
MinRK
rebuild example notebooks...
r7739 "This is a Heading Cell (level 1)"
]
},
{
"cell_type": "heading",
"level": 4,
"metadata": {},
"source": [
"This is a Heading Cell (level 4)"
Fernando Perez
Update formatting example nb
r5782 ]
Brian Granger
Updating example notebooks to v3 format.
r6035 },
Fernando Perez
Update formatting example nb
r5782 {
MinRK
rebuild example notebooks...
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>"
]
Fernando Perez
Update formatting example nb
r5782 }
MinRK
rebuild example notebooks...
r7739 ],
"metadata": {}
Fernando Perez
Update formatting example nb
r5782 }
]
Brian E. Granger
Converting notebooks to JSON format.
r4634 }