Skip to content

Commit afcc573

Browse files
committed
Clean up
1 parent 407f79a commit afcc573

10 files changed

+2155
-1355
lines changed

Package installation.ipynb

Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
{
2+
"metadata": {
3+
"name": "",
4+
"signature": "sha256:b5686e355d1f268860247b11c6f5ec86777548ae889b427e069ce105e90def82"
5+
},
6+
"nbformat": 3,
7+
"nbformat_minor": 0,
8+
"worksheets": [
9+
{
10+
"cells": [
11+
{
12+
"cell_type": "code",
13+
"collapsed": false,
14+
"input": [
15+
"! conda install basemap &> /dev/null"
16+
],
17+
"language": "python",
18+
"metadata": {},
19+
"outputs": [],
20+
"prompt_number": 29
21+
},
22+
{
23+
"cell_type": "code",
24+
"collapsed": false,
25+
"input": [
26+
"! pip install psutil &> /dev/null"
27+
],
28+
"language": "python",
29+
"metadata": {},
30+
"outputs": [],
31+
"prompt_number": 9
32+
},
33+
{
34+
"cell_type": "code",
35+
"collapsed": false,
36+
"input": [
37+
"! pip install memory_profiler &> /dev/null"
38+
],
39+
"language": "python",
40+
"metadata": {},
41+
"outputs": [],
42+
"prompt_number": 11
43+
},
44+
{
45+
"cell_type": "code",
46+
"collapsed": false,
47+
"input": [
48+
"! pip install --pre line-profiler &> /dev/null"
49+
],
50+
"language": "python",
51+
"metadata": {},
52+
"outputs": [],
53+
"prompt_number": 7
54+
},
55+
{
56+
"cell_type": "code",
57+
"collapsed": false,
58+
"input": [
59+
"! pip install -I openpyxl==1.8.6 &> /dev/null"
60+
],
61+
"language": "python",
62+
"metadata": {},
63+
"outputs": [],
64+
"prompt_number": 5
65+
},
66+
{
67+
"cell_type": "code",
68+
"collapsed": false,
69+
"input": [
70+
"! pip install git+https://github.com/jakevdp/JSAnimation.git &> /dev/null"
71+
],
72+
"language": "python",
73+
"metadata": {},
74+
"outputs": [],
75+
"prompt_number": 3
76+
},
77+
{
78+
"cell_type": "code",
79+
"collapsed": false,
80+
"input": [
81+
"! pip install oct2py &> /dev/null"
82+
],
83+
"language": "python",
84+
"metadata": {},
85+
"outputs": [],
86+
"prompt_number": 40
87+
},
88+
{
89+
"cell_type": "code",
90+
"collapsed": false,
91+
"input": [
92+
"! pip install rpy2 &> /dev/null"
93+
],
94+
"language": "python",
95+
"metadata": {},
96+
"outputs": [],
97+
"prompt_number": 38
98+
},
99+
{
100+
"cell_type": "code",
101+
"collapsed": false,
102+
"input": [
103+
"! pip install functional &> /dev/null"
104+
],
105+
"language": "python",
106+
"metadata": {},
107+
"outputs": [],
108+
"prompt_number": 21
109+
},
110+
{
111+
"cell_type": "code",
112+
"collapsed": false,
113+
"input": [
114+
"! pip install mpld3 &> /dev/null"
115+
],
116+
"language": "python",
117+
"metadata": {},
118+
"outputs": [],
119+
"prompt_number": 24
120+
},
121+
{
122+
"cell_type": "code",
123+
"collapsed": false,
124+
"input": [
125+
"! pip install statsmodels &> /dev/null"
126+
],
127+
"language": "python",
128+
"metadata": {},
129+
"outputs": [],
130+
"prompt_number": 23
131+
},
132+
{
133+
"cell_type": "code",
134+
"collapsed": false,
135+
"input": [
136+
"! pip install seaborn &> /dev/null"
137+
],
138+
"language": "python",
139+
"metadata": {},
140+
"outputs": [],
141+
"prompt_number": 22
142+
},
143+
{
144+
"cell_type": "code",
145+
"collapsed": false,
146+
"input": [
147+
"! pip install git+https://github.com/epmoyer/ipy_table &> /dev/null"
148+
],
149+
"language": "python",
150+
"metadata": {},
151+
"outputs": [],
152+
"prompt_number": 33
153+
},
154+
{
155+
"cell_type": "code",
156+
"collapsed": false,
157+
"input": [
158+
" ! pip install git+https://github.com/arokem/python-matlab-bridge.git &> /dev/null"
159+
],
160+
"language": "python",
161+
"metadata": {},
162+
"outputs": [],
163+
"prompt_number": 25
164+
},
165+
{
166+
"cell_type": "code",
167+
"collapsed": false,
168+
"input": [
169+
"! pip install git+https://github.com/pymc-devs/pymc &> /dev/null"
170+
],
171+
"language": "python",
172+
"metadata": {},
173+
"outputs": [],
174+
"prompt_number": 26
175+
},
176+
{
177+
"cell_type": "code",
178+
"collapsed": false,
179+
"input": [
180+
"! pip install pyzmq &> /dev/null"
181+
],
182+
"language": "python",
183+
"metadata": {},
184+
"outputs": [],
185+
"prompt_number": 30
186+
},
187+
{
188+
"cell_type": "code",
189+
"collapsed": false,
190+
"input": [
191+
"! pip install emcee &> /dev/null"
192+
],
193+
"language": "python",
194+
"metadata": {},
195+
"outputs": [],
196+
"prompt_number": 31
197+
},
198+
{
199+
"cell_type": "code",
200+
"collapsed": false,
201+
"input": [
202+
"! pip install pystan &> /dev/null"
203+
],
204+
"language": "python",
205+
"metadata": {},
206+
"outputs": [],
207+
"prompt_number": 19
208+
},
209+
{
210+
"cell_type": "code",
211+
"collapsed": false,
212+
"input": [
213+
"! pip install runipy &> /dev/null"
214+
],
215+
"language": "python",
216+
"metadata": {},
217+
"outputs": [],
218+
"prompt_number": 36
219+
},
220+
{
221+
"cell_type": "code",
222+
"collapsed": false,
223+
"input": [
224+
"%install_ext https://raw.github.com/mgaitan/fortran_magic/master/fortranmagic.py\n",
225+
"%install_ext https://raw.github.com/gist/3458310/biteymagic.py\n",
226+
"%install_ext https://raw.github.com/tkf/ipython-sqlitemagic/master/sqlitemagic.py\n",
227+
"%install_ext http://raw.github.com/jrjohansson/version_information/master/version_information.py"
228+
],
229+
"language": "python",
230+
"metadata": {},
231+
"outputs": [
232+
{
233+
"output_type": "stream",
234+
"stream": "stdout",
235+
"text": [
236+
"Installed fortranmagic.py. To use it, type:\n",
237+
" %load_ext fortranmagic\n",
238+
"Installed biteymagic.py. To use it, type:"
239+
]
240+
},
241+
{
242+
"output_type": "stream",
243+
"stream": "stdout",
244+
"text": [
245+
"\n",
246+
" %load_ext biteymagic\n",
247+
"Installed sqlitemagic.py. To use it, type:"
248+
]
249+
},
250+
{
251+
"output_type": "stream",
252+
"stream": "stdout",
253+
"text": [
254+
"\n",
255+
" %load_ext sqlitemagic\n"
256+
]
257+
}
258+
],
259+
"prompt_number": 34
260+
},
261+
{
262+
"cell_type": "code",
263+
"collapsed": false,
264+
"input": [],
265+
"language": "python",
266+
"metadata": {},
267+
"outputs": []
268+
}
269+
],
270+
"metadata": {}
271+
}
272+
]
273+
}

lessons/Bayesian models.ipynb

Lines changed: 934 additions & 649 deletions
Large diffs are not rendered by default.

lessons/Functional and recursive programs in Python.ipynb

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:22fe82adbcda8907ce6127f03074d9b239269ec1d36bccbb5e19c65298659ee6"
4+
"signature": "sha256:649532956b2c76feeb76af48991412a4f2b24879292eaf82ec3a393735d0df7c"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -290,11 +290,11 @@
290290
"output_type": "pyout",
291291
"prompt_number": 9,
292292
"text": [
293-
"[[6, 4, 1, 1, 0, 8, 5, 0, 8, 0, 5, 5],\n",
294-
" [7, 8, 3, 9, 3, 5, 8, 9, 6, 8, 2, 2],\n",
295-
" [9, 0, 7, 5, 7, 3, 6, 3, 1, 2, 0, 6],\n",
296-
" [4, 5, 3, 2, 3, 3, 3, 9, 0, 8, 9, 9],\n",
297-
" [4, 9, 6, 0, 7, 7, 3, 1, 7, 6, 3, 2]]"
293+
"[[1, 3, 2, 9, 7, 9, 2, 2, 7, 1, 6, 6],\n",
294+
" [3, 9, 0, 1, 0, 5, 9, 7, 6, 8, 2, 6],\n",
295+
" [9, 1, 3, 6, 5, 7, 5, 6, 4, 0, 8, 3],\n",
296+
" [6, 7, 1, 8, 6, 4, 4, 3, 3, 1, 5, 1],\n",
297+
" [3, 8, 7, 5, 2, 8, 1, 1, 1, 5, 0, 3]]"
298298
]
299299
}
300300
],
@@ -327,7 +327,7 @@
327327
"output_type": "stream",
328328
"stream": "stdout",
329329
"text": [
330-
"[257, 490, 299, 388, 339]\n"
330+
"[355, 386, 351, 263, 252]\n"
331331
]
332332
}
333333
],
@@ -348,7 +348,7 @@
348348
"output_type": "pyout",
349349
"prompt_number": 11,
350350
"text": [
351-
"490"
351+
"386"
352352
]
353353
}
354354
],
@@ -370,7 +370,7 @@
370370
"output_type": "pyout",
371371
"prompt_number": 12,
372372
"text": [
373-
"490"
373+
"386"
374374
]
375375
}
376376
],
@@ -392,7 +392,7 @@
392392
"output_type": "pyout",
393393
"prompt_number": 13,
394394
"text": [
395-
"490"
395+
"386"
396396
]
397397
}
398398
],
@@ -648,16 +648,16 @@
648648
"output_type": "stream",
649649
"stream": "stdout",
650650
"text": [
651-
"(9.762533047757854, 10.113742417775335)\n",
652-
"(4.5560050000000079, 5.4491022750000058)"
651+
"(9.7001821758518894, 10.085722964842198)\n",
652+
"(4.3044644000000094, 5.1235598749999891)"
653653
]
654654
},
655655
{
656656
"output_type": "stream",
657657
"stream": "stdout",
658658
"text": [
659659
"\n",
660-
"(0.18408447074252562, 0.21932090294262238)"
660+
"(0.19309519672067721, 0.23122277631375732)"
661661
]
662662
},
663663
{
@@ -715,15 +715,15 @@
715715
"output_type": "stream",
716716
"stream": "stdout",
717717
"text": [
718-
"Elapsed time: 1.0011918544769287\n",
719-
"Elapsed time:"
718+
"('Elapsed time:', 1.0001499652862549)\n",
719+
"('Elapsed time:', 2.001127004623413)"
720720
]
721721
},
722722
{
723723
"output_type": "stream",
724724
"stream": "stdout",
725725
"text": [
726-
" 2.0007669925689697\n"
726+
"\n"
727727
]
728728
}
729729
],
@@ -874,16 +874,16 @@
874874
"output_type": "stream",
875875
"stream": "stdout",
876876
"text": [
877-
"3 loops, best of 3: 581 ms per loop\n",
878-
"10 loops, best of 3: 238 ns per loop"
877+
"3 loops, best of 3: 655 ms per loop\n",
878+
"10 loops, best of 3: 620 ns per loop"
879879
]
880880
},
881881
{
882882
"output_type": "stream",
883883
"stream": "stdout",
884884
"text": [
885885
"\n",
886-
"10 loops, best of 3: 117 ns per loop"
886+
"10 loops, best of 3: 95.4 ns per loop"
887887
]
888888
},
889889
{

0 commit comments

Comments
 (0)