Show More
@@ -1,120 +1,126 b'' | |||||
1 | { |
|
1 | { | |
2 |
|
|
2 | "metadata": { | |
3 |
|
|
3 | "name": "formatting" | |
|
4 | }, | |||
|
5 | "nbformat": 2, | |||
|
6 | "worksheets": [ | |||
|
7 | { | |||
|
8 | "cells": [ | |||
|
9 | { | |||
|
10 | "cell_type": "markdown", | |||
|
11 | "source": [ | |||
|
12 | "# Examples of basic formatting in the notebook", | |||
|
13 | "", | |||
|
14 | "Normal and formatted text cells such as this one use the ", | |||
|
15 | "[Markdown](http://daringfireball.net/projects/markdown/basics) syntax.", | |||
|
16 | "", | |||
|
17 | "", | |||
|
18 | "# Title (h1)", | |||
|
19 | "", | |||
|
20 | "## Heading (h2)", | |||
|
21 | "", | |||
|
22 | "### Heading (h3)", | |||
|
23 | "", | |||
|
24 | "Here is a paragraph of text.", | |||
|
25 | "", | |||
|
26 | "* One.", | |||
|
27 | " - Sublist", | |||
|
28 | " - Here we go", | |||
|
29 | " - Sublist", | |||
|
30 | " - Here we go", | |||
|
31 | " - Here we go", | |||
|
32 | "* Two.", | |||
|
33 | " - Sublist", | |||
|
34 | "* Three.", | |||
|
35 | " - Sublist", | |||
|
36 | "", | |||
|
37 | "Now another list:", | |||
|
38 | "", | |||
|
39 | "---", | |||
|
40 | "", | |||
|
41 | "1. Here we go", | |||
|
42 | " 1. Sublist", | |||
|
43 | " 2. Sublist", | |||
|
44 | "2. There we go", | |||
|
45 | "3. Now this", | |||
|
46 | "", | |||
|
47 | "And another paragraph.", | |||
|
48 | "", | |||
|
49 | "### Heading (h3)", | |||
|
50 | "", | |||
|
51 | "#### Heading (h4)", | |||
|
52 | "", | |||
|
53 | "##### Heading (h5)", | |||
|
54 | "", | |||
|
55 | "###### Heading (h6)", | |||
|
56 | "", | |||
|
57 | "## Heading (h2)" | |||
|
58 | ] | |||
4 | }, |
|
59 | }, | |
5 | "nbformat": 2, |
|
60 | { | |
6 | "worksheets": [ |
|
61 | "cell_type": "markdown", | |
7 | { |
|
62 | "source": [ | |
8 | "cells": [ |
|
63 | "# Heading (h1)", | |
9 | { |
|
64 | "", | |
10 | "cell_type": "markdown", |
|
65 | "## Heading (h2)", | |
11 | "source": [ |
|
66 | "", | |
12 | "# Title (h1)", |
|
67 | "### Heading (h3)", | |
13 | "", |
|
68 | "", | |
14 |
|
|
69 | "#### Heading (h4)", | |
15 | "", |
|
70 | "", | |
16 |
|
|
71 | "##### Heading (h5)", | |
17 | "", |
|
72 | "", | |
18 | "Here is a paragraph of text.", |
|
73 | "###### Heading (h6)", | |
19 | "", |
|
74 | "", | |
20 | "* One.", |
|
75 | "Now for a simple code example:", | |
21 | " - Sublist", |
|
76 | "", | |
22 | " - Here we go", |
|
77 | " for i in range(10):", | |
23 | " - Sublist", |
|
78 | " print i", | |
24 | " - Here we go", |
|
79 | "", | |
25 | " - Here we go", |
|
80 | "Now more text" | |
26 | "* Two.", |
|
81 | ] | |
27 | " - Sublist", |
|
82 | }, | |
28 | "* Three.", |
|
83 | { | |
29 | " - Sublist", |
|
84 | "cell_type": "markdown", | |
30 | "", |
|
85 | "source": [ | |
31 | "Now another list:", |
|
86 | "## Heading (h2)", | |
32 | "", |
|
87 | "", | |
33 | "---", |
|
88 | "Here is text.", | |
34 | "", |
|
89 | "", | |
35 | "1. Here we go", |
|
90 | "> This is a *block* quote. This is a block quote. This is a block quote. ", | |
36 | " 1. Sublist", |
|
91 | "> This is a **block** quote. This is a block quote. This is a block quote. ", | |
37 | " 2. Sublist", |
|
92 | "> This is a `block` quote. This is a block quote. This is a block quote. ", | |
38 | "2. There we go", |
|
93 | "> This is a block quote. This is a block quote. This is a block quote. ", | |
39 | "3. Now this", |
|
94 | "> This is a block quote. This is a block quote. This is a block quote. ", | |
40 | "", |
|
95 | "> This is a block quote. This is a block quote. This is a block quote. ", | |
41 | "And another paragraph.", |
|
96 | "", | |
42 | "", |
|
97 | "Here is text", | |
43 | "### Heading (h3)", |
|
98 | "", | |
44 | "", |
|
99 | "<table>", | |
45 | "#### Heading (h4)", |
|
100 | "<tr>", | |
46 | "", |
|
101 | "<th>Header 1</th>", | |
47 | "##### Heading (h5)", |
|
102 | "<th>Header 2</th>", | |
48 | "", |
|
103 | "</tr>", | |
49 | "###### Heading (h6)", |
|
104 | "<tr>", | |
50 | "", |
|
105 | "<td>row 1, cell 1</td>", | |
51 | "## Heading (h2)", |
|
106 | "<td>row 1, cell 2</td>", | |
52 | "" |
|
107 | "</tr>", | |
53 | ] |
|
108 | "<tr>", | |
54 | }, |
|
109 | "<td>row 2, cell 1</td>", | |
55 | { |
|
110 | "<td>row 2, cell 2</td>", | |
56 | "cell_type": "markdown", |
|
111 | "</tr>", | |
57 | "source": [ |
|
112 | "</table>" | |
58 | "# Heading (h1)", |
|
113 | ] | |
59 | "", |
|
114 | }, | |
60 | "## Heading (h2)", |
|
115 | { | |
61 | "", |
|
116 | "cell_type": "code", | |
62 | "### Heading (h3)", |
|
117 | "collapsed": true, | |
63 | "", |
|
118 | "input": [], | |
64 | "#### Heading (h4)", |
|
119 | "language": "python", | |
65 | "", |
|
120 | "outputs": [], | |
66 | "##### Heading (h5)", |
|
121 | "prompt_number": " " | |
67 | "", |
|
122 | } | |
68 | "###### Heading (h6)", |
|
123 | ] | |
69 | "", |
|
124 | } | |
70 | "Now for a simpel code example:", |
|
125 | ] | |
71 | "", |
|
|||
72 | " for i in range(10):", |
|
|||
73 | " print i", |
|
|||
74 | "", |
|
|||
75 | "Now more text" |
|
|||
76 | ] |
|
|||
77 | }, |
|
|||
78 | { |
|
|||
79 | "cell_type": "markdown", |
|
|||
80 | "source": [ |
|
|||
81 | "## Heading (h2)", |
|
|||
82 | "", |
|
|||
83 | "Here is text.", |
|
|||
84 | "", |
|
|||
85 | "> This is a *block* quote. This is a block quote. This is a block quote. ", |
|
|||
86 | "> This is a **block** quote. This is a block quote. This is a block quote. ", |
|
|||
87 | "> This is a `block` quote. This is a block quote. This is a block quote. ", |
|
|||
88 | "> This is a block quote. This is a block quote. This is a block quote. ", |
|
|||
89 | "> This is a block quote. This is a block quote. This is a block quote. ", |
|
|||
90 | "> This is a block quote. This is a block quote. This is a block quote. ", |
|
|||
91 | "", |
|
|||
92 | "Here is text", |
|
|||
93 | "", |
|
|||
94 | "<table>", |
|
|||
95 | "<tr>", |
|
|||
96 | "<th>Header 1</th>", |
|
|||
97 | "<th>Header 2</th>", |
|
|||
98 | "</tr>", |
|
|||
99 | "<tr>", |
|
|||
100 | "<td>row 1, cell 1</td>", |
|
|||
101 | "<td>row 1, cell 2</td>", |
|
|||
102 | "</tr>", |
|
|||
103 | "<tr>", |
|
|||
104 | "<td>row 2, cell 1</td>", |
|
|||
105 | "<td>row 2, cell 2</td>", |
|
|||
106 | "</tr>", |
|
|||
107 | "</table>" |
|
|||
108 | ] |
|
|||
109 | }, |
|
|||
110 | { |
|
|||
111 | "cell_type": "code", |
|
|||
112 | "collapsed": true, |
|
|||
113 | "input": [], |
|
|||
114 | "language": "python", |
|
|||
115 | "outputs": [] |
|
|||
116 | } |
|
|||
117 | ] |
|
|||
118 | } |
|
|||
119 | ] |
|
|||
120 | } No newline at end of file |
|
126 | } |
General Comments 0
You need to be logged in to leave comments.
Login now