Skip to content

Commit 30f7461

Browse files
committed
Added another notebook
1 parent 5ca59a5 commit 30f7461

File tree

2 files changed

+89
-282
lines changed

2 files changed

+89
-282
lines changed

Prologue.ipynb

-282
This file was deleted.

test/test_notebook2.ipynb

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"This note book is for testing out basic functionalities of nbviewer rendering of equations and code blocks."
8+
]
9+
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"Let me try an equation\n",
15+
"\n",
16+
"$$\\frac{1}{N} \\sum_{i=1}^N Z_i \\rightarrow E[ Z ], \\;\\;\\; N \\rightarrow \\infty.$$\n",
17+
"\n",
18+
"\\begin{eqnarray}\n",
19+
"\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\\n",
20+
"\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n",
21+
"\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n",
22+
"\\nabla \\cdot \\vec{\\mathbf{B}} & = 0 \n",
23+
"\\end{eqnarray}"
24+
]
25+
},
26+
{
27+
"cell_type": "code",
28+
"execution_count": 7,
29+
"metadata": {},
30+
"outputs": [
31+
{
32+
"data": {
33+
"text/html": [
34+
"\n",
35+
" <iframe\n",
36+
" width=\"100%\"\n",
37+
" height=\"350\"\n",
38+
" src=\"https://www.baidu.com\"\n",
39+
" frameborder=\"0\"\n",
40+
" allowfullscreen\n",
41+
" ></iframe>\n",
42+
" "
43+
],
44+
"text/plain": [
45+
"<IPython.lib.display.IFrame at 0x103c06190>"
46+
]
47+
},
48+
"execution_count": 7,
49+
"metadata": {},
50+
"output_type": "execute_result"
51+
}
52+
],
53+
"source": [
54+
"from IPython.display import IFrame\n",
55+
"IFrame('https://www.baidu.com', width='100%', height=350)"
56+
]
57+
},
58+
{
59+
"cell_type": "code",
60+
"execution_count": null,
61+
"metadata": {
62+
"collapsed": true
63+
},
64+
"outputs": [],
65+
"source": []
66+
}
67+
],
68+
"metadata": {
69+
"kernelspec": {
70+
"display_name": "Python 2",
71+
"language": "python",
72+
"name": "python2"
73+
},
74+
"language_info": {
75+
"codemirror_mode": {
76+
"name": "ipython",
77+
"version": 2
78+
},
79+
"file_extension": ".py",
80+
"mimetype": "text/x-python",
81+
"name": "python",
82+
"nbconvert_exporter": "python",
83+
"pygments_lexer": "ipython2",
84+
"version": "2.7.13"
85+
}
86+
},
87+
"nbformat": 4,
88+
"nbformat_minor": 2
89+
}

0 commit comments

Comments
 (0)