Skip to content

Commit c4f498f

Browse files
fix some html (i think)
1 parent 2b51eb3 commit c4f498f

File tree

3 files changed

+217
-23
lines changed

3 files changed

+217
-23
lines changed

Chapter2_MorePyMC/Ch2_MorePyMC_PyMC3.ipynb

Lines changed: 96 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,11 +2529,100 @@
25292529
},
25302530
{
25312531
"cell_type": "code",
2532-
"execution_count": null,
2532+
"execution_count": 1,
25332533
"metadata": {
25342534
"collapsed": false
25352535
},
2536-
"outputs": [],
2536+
"outputs": [
2537+
{
2538+
"data": {
2539+
"text/html": [
2540+
"<style>\n",
2541+
" @font-face {\n",
2542+
" font-family: \"Computer Modern\";\n",
2543+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunss.otf');\n",
2544+
" }\n",
2545+
" @font-face {\n",
2546+
" font-family: \"Computer Modern\";\n",
2547+
" font-weight: bold;\n",
2548+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunsx.otf');\n",
2549+
" }\n",
2550+
" @font-face {\n",
2551+
" font-family: \"Computer Modern\";\n",
2552+
" font-style: oblique;\n",
2553+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunsi.otf');\n",
2554+
" }\n",
2555+
" @font-face {\n",
2556+
" font-family: \"Computer Modern\";\n",
2557+
" font-weight: bold;\n",
2558+
" font-style: oblique;\n",
2559+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunso.otf');\n",
2560+
" }\n",
2561+
" div.cell{\n",
2562+
" width:800px;\n",
2563+
" margin-left:16% !important;\n",
2564+
" margin-right:auto;\n",
2565+
" }\n",
2566+
" h1 {\n",
2567+
" font-family: Helvetica, serif;\n",
2568+
" }\n",
2569+
" h4{\n",
2570+
" margin-top:12px;\n",
2571+
" margin-bottom: 3px;\n",
2572+
" }\n",
2573+
" div.text_cell_render{\n",
2574+
" font-family: Computer Modern, \"Helvetica Neue\", Arial, Helvetica, Geneva, sans-serif;\n",
2575+
" line-height: 145%;\n",
2576+
" font-size: 130%;\n",
2577+
" width:800px;\n",
2578+
" margin-left:auto;\n",
2579+
" margin-right:auto;\n",
2580+
" }\n",
2581+
" .CodeMirror{\n",
2582+
" font-family: \"Source Code Pro\", source-code-pro,Consolas, monospace;\n",
2583+
" }\n",
2584+
" .prompt{\n",
2585+
" display: None;\n",
2586+
" }\n",
2587+
" .text_cell_render h5 {\n",
2588+
" font-weight: 300;\n",
2589+
" font-size: 22pt;\n",
2590+
" color: #4057A1;\n",
2591+
" font-style: italic;\n",
2592+
" margin-bottom: .5em;\n",
2593+
" margin-top: 0.5em;\n",
2594+
" display: block;\n",
2595+
" }\n",
2596+
" \n",
2597+
" .warning{\n",
2598+
" color: rgb( 240, 20, 20 )\n",
2599+
" } \n",
2600+
"</style>\n",
2601+
"<script>\n",
2602+
" MathJax.Hub.Config({\n",
2603+
" TeX: {\n",
2604+
" extensions: [\"AMSmath.js\"]\n",
2605+
" },\n",
2606+
" tex2jax: {\n",
2607+
" inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n",
2608+
" displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n",
2609+
" },\n",
2610+
" displayAlign: 'center', // Change this to 'center' to center equations.\n",
2611+
" \"HTML-CSS\": {\n",
2612+
" styles: {'.MathJax_Display': {\"margin\": 4}}\n",
2613+
" }\n",
2614+
" });\n",
2615+
"</script>\n"
2616+
],
2617+
"text/plain": [
2618+
"<IPython.core.display.HTML object>"
2619+
]
2620+
},
2621+
"execution_count": 1,
2622+
"metadata": {},
2623+
"output_type": "execute_result"
2624+
}
2625+
],
25372626
"source": [
25382627
"from IPython.core.display import HTML\n",
25392628
"\n",
@@ -2557,21 +2646,21 @@
25572646
"metadata": {
25582647
"anaconda-cloud": {},
25592648
"kernelspec": {
2560-
"display_name": "Python 3",
2649+
"display_name": "Python 2",
25612650
"language": "python",
2562-
"name": "python3"
2651+
"name": "python2"
25632652
},
25642653
"language_info": {
25652654
"codemirror_mode": {
25662655
"name": "ipython",
2567-
"version": 3
2656+
"version": 2
25682657
},
25692658
"file_extension": ".py",
25702659
"mimetype": "text/x-python",
25712660
"name": "python",
25722661
"nbconvert_exporter": "python",
2573-
"pygments_lexer": "ipython3",
2574-
"version": "3.4.5"
2662+
"pygments_lexer": "ipython2",
2663+
"version": "2.7.11"
25752664
}
25762665
},
25772666
"nbformat": 4,

Chapter3_MCMC/Ch3_IntroMCMC_PyMC3.ipynb

Lines changed: 96 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,11 +1275,100 @@
12751275
},
12761276
{
12771277
"cell_type": "code",
1278-
"execution_count": null,
1278+
"execution_count": 1,
12791279
"metadata": {
12801280
"collapsed": false
12811281
},
1282-
"outputs": [],
1282+
"outputs": [
1283+
{
1284+
"data": {
1285+
"text/html": [
1286+
"<style>\n",
1287+
" @font-face {\n",
1288+
" font-family: \"Computer Modern\";\n",
1289+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunss.otf');\n",
1290+
" }\n",
1291+
" @font-face {\n",
1292+
" font-family: \"Computer Modern\";\n",
1293+
" font-weight: bold;\n",
1294+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunsx.otf');\n",
1295+
" }\n",
1296+
" @font-face {\n",
1297+
" font-family: \"Computer Modern\";\n",
1298+
" font-style: oblique;\n",
1299+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunsi.otf');\n",
1300+
" }\n",
1301+
" @font-face {\n",
1302+
" font-family: \"Computer Modern\";\n",
1303+
" font-weight: bold;\n",
1304+
" font-style: oblique;\n",
1305+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunso.otf');\n",
1306+
" }\n",
1307+
" div.cell{\n",
1308+
" width:800px;\n",
1309+
" margin-left:16% !important;\n",
1310+
" margin-right:auto;\n",
1311+
" }\n",
1312+
" h1 {\n",
1313+
" font-family: Helvetica, serif;\n",
1314+
" }\n",
1315+
" h4{\n",
1316+
" margin-top:12px;\n",
1317+
" margin-bottom: 3px;\n",
1318+
" }\n",
1319+
" div.text_cell_render{\n",
1320+
" font-family: Computer Modern, \"Helvetica Neue\", Arial, Helvetica, Geneva, sans-serif;\n",
1321+
" line-height: 145%;\n",
1322+
" font-size: 130%;\n",
1323+
" width:800px;\n",
1324+
" margin-left:auto;\n",
1325+
" margin-right:auto;\n",
1326+
" }\n",
1327+
" .CodeMirror{\n",
1328+
" font-family: \"Source Code Pro\", source-code-pro,Consolas, monospace;\n",
1329+
" }\n",
1330+
" .prompt{\n",
1331+
" display: None;\n",
1332+
" }\n",
1333+
" .text_cell_render h5 {\n",
1334+
" font-weight: 300;\n",
1335+
" font-size: 22pt;\n",
1336+
" color: #4057A1;\n",
1337+
" font-style: italic;\n",
1338+
" margin-bottom: .5em;\n",
1339+
" margin-top: 0.5em;\n",
1340+
" display: block;\n",
1341+
" }\n",
1342+
" \n",
1343+
" .warning{\n",
1344+
" color: rgb( 240, 20, 20 )\n",
1345+
" } \n",
1346+
"</style>\n",
1347+
"<script>\n",
1348+
" MathJax.Hub.Config({\n",
1349+
" TeX: {\n",
1350+
" extensions: [\"AMSmath.js\"]\n",
1351+
" },\n",
1352+
" tex2jax: {\n",
1353+
" inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n",
1354+
" displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ]\n",
1355+
" },\n",
1356+
" displayAlign: 'center', // Change this to 'center' to center equations.\n",
1357+
" \"HTML-CSS\": {\n",
1358+
" styles: {'.MathJax_Display': {\"margin\": 4}}\n",
1359+
" }\n",
1360+
" });\n",
1361+
"</script>\n"
1362+
],
1363+
"text/plain": [
1364+
"<IPython.core.display.HTML object>"
1365+
]
1366+
},
1367+
"execution_count": 1,
1368+
"metadata": {},
1369+
"output_type": "execute_result"
1370+
}
1371+
],
12831372
"source": [
12841373
"from IPython.core.display import HTML\n",
12851374
"\n",
@@ -1303,21 +1392,21 @@
13031392
"metadata": {
13041393
"anaconda-cloud": {},
13051394
"kernelspec": {
1306-
"display_name": "Python [default]",
1395+
"display_name": "Python 2",
13071396
"language": "python",
1308-
"name": "python3"
1397+
"name": "python2"
13091398
},
13101399
"language_info": {
13111400
"codemirror_mode": {
13121401
"name": "ipython",
1313-
"version": 3
1402+
"version": 2
13141403
},
13151404
"file_extension": ".py",
13161405
"mimetype": "text/x-python",
13171406
"name": "python",
13181407
"nbconvert_exporter": "python",
1319-
"pygments_lexer": "ipython3",
1320-
"version": "3.5.2"
1408+
"pygments_lexer": "ipython2",
1409+
"version": "2.7.11"
13211410
}
13221411
},
13231412
"nbformat": 4,

Chapter4_TheGreatestTheoremNeverTold/Ch4_LawOfLargeNumbers_PyMC3.ipynb

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@
10771077
},
10781078
{
10791079
"cell_type": "code",
1080-
"execution_count": 32,
1080+
"execution_count": 1,
10811081
"metadata": {
10821082
"collapsed": false
10831083
},
@@ -1090,6 +1090,22 @@
10901090
" font-family: \"Computer Modern\";\n",
10911091
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunss.otf');\n",
10921092
" }\n",
1093+
" @font-face {\n",
1094+
" font-family: \"Computer Modern\";\n",
1095+
" font-weight: bold;\n",
1096+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunsx.otf');\n",
1097+
" }\n",
1098+
" @font-face {\n",
1099+
" font-family: \"Computer Modern\";\n",
1100+
" font-style: oblique;\n",
1101+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunsi.otf');\n",
1102+
" }\n",
1103+
" @font-face {\n",
1104+
" font-family: \"Computer Modern\";\n",
1105+
" font-weight: bold;\n",
1106+
" font-style: oblique;\n",
1107+
" src: url('http://9dbb143991406a7c655e-aa5fcb0a5a4ec34cff238a2d56ca4144.r56.cf5.rackcdn.com/cmunso.otf');\n",
1108+
" }\n",
10931109
" div.cell{\n",
10941110
" width:800px;\n",
10951111
" margin-left:16% !important;\n",
@@ -1144,13 +1160,13 @@
11441160
" styles: {'.MathJax_Display': {\"margin\": 4}}\n",
11451161
" }\n",
11461162
" });\n",
1147-
"</script>"
1163+
"</script>\n"
11481164
],
11491165
"text/plain": [
1150-
"<IPython.core.display.HTML at 0x1155d1210>"
1166+
"<IPython.core.display.HTML object>"
11511167
]
11521168
},
1153-
"execution_count": 32,
1169+
"execution_count": 1,
11541170
"metadata": {},
11551171
"output_type": "execute_result"
11561172
}
@@ -1177,21 +1193,21 @@
11771193
"metadata": {
11781194
"anaconda-cloud": {},
11791195
"kernelspec": {
1180-
"display_name": "Python [default]",
1196+
"display_name": "Python 2",
11811197
"language": "python",
1182-
"name": "python3"
1198+
"name": "python2"
11831199
},
11841200
"language_info": {
11851201
"codemirror_mode": {
11861202
"name": "ipython",
1187-
"version": 3
1203+
"version": 2
11881204
},
11891205
"file_extension": ".py",
11901206
"mimetype": "text/x-python",
11911207
"name": "python",
11921208
"nbconvert_exporter": "python",
1193-
"pygments_lexer": "ipython3",
1194-
"version": "3.5.2"
1209+
"pygments_lexer": "ipython2",
1210+
"version": "2.7.11"
11951211
}
11961212
},
11971213
"nbformat": 4,

0 commit comments

Comments
 (0)