1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
|
1 Module 1: Basic Plotting (16)
================================
1.1 ABCD
---------
* Audience
+ same
* Behaviour
- should be able to generate plots with any combination of built-in
mathematical functions provided by pylab
* Condition
- being learnt in a self-study tutorial.
- have python setup in their machine
* Degree
- RBT - Ap
1.2 LO: getting started with =ipython= (2) [punch]
---------------------------------------------------
* Objective
Participants will be able to invoke and use basic features of ipython.
* ABCD
+ Condition
- have =python= & =ipython= setup in their machine. no mention of =pylab=
* Assessment Strategy
Built-in interspersed exercises
- workbook
+ errors, make connection with error message
* Outline
+ invoking ipython
if there's a problem, pre-requisites are not met.
+ getting out
+ explain the prompt
+ typing commands
- 1+2
* careful wording to differentiate from print
- print 1+2
- history (up, down arrows)
- backspace, delete key
- tab completion
* ab
* a
* rou
* ro
* r
+ =abs?=, =round?=
+ handling typing errors
- round(2.48,
+ close it
+ use ^C
1.3 LO: using the =plot= command interactively (2) [amit]
----------------------------------------------------------
* Outline
+ ipython -pylab
- pylab brings in the libraries necessary for Scientific Computing.
+ =linspace=,
+ =len=
+ =clf=
+ =plot=
+ using the plot ui
1.4 LO: embellishing a plot (2) [nishanth]
-------------------------------------------
* Outline
+ [X]line width, color, style
+ [X]Title
+ [X]Label
+ [X]annotations
1.5 LO: saving plots (2) [anoop]
---------------------------------
* Outline
+ basic savefig
+ png, pdf, ps, eps, svg
+ going to OS and looking at the file
1.6 LO: multiple plots (3) [madhu]
-----------------------------------
* Outline
+ overlays
- linspace
* give one with very few points, more points
* show smoothness of the curve
+ legend
+ figure 1, figure2
+ subplots
1.7 LO: additional features of IPython (2) [nishanth]
------------------------------------------------------
* Outline
+ =%save=, =%history=, =%run=
1.8 LO: module level assessment (3) [madhu]
--------------------------------------------
* 10-12 question, time the questions
* pause & and play when ready to look at answers
* show the answers
* one large or two medium questions
* ex: four_plot
2 Module 2: Plotting Experimental Data (12)
============================================
2.1 ABCD
---------
* Audience
+ same
* Behaviour
- should be able to generate plots with numeric data from files.
* Condition
- being learnt in a self-study tutorial.
- have python setup in their machine
* Degree
- Same
2.2 LO: loading data from files (3) [punch]
--------------------------------------------
* loadtxt with unpack=True
+ primes.list (one col)
+ pendulum.txt (two col)
2.3 LO: plotting the data (3) [amit]
-------------------------------------
* plot L vs. T^2
+ using square function
* problem with 3 cols
+ 3rd column is error
+ error bar
2.4 LO: other types of plots (3) [anoop]
-----------------------------------------
* scatter
* pie chart
* bar chart
* log
* illustration of other plots, matplotlib help
2.5 LO: module level assessment (3) [nishanth]
-----------------------------------------------
* pos.txt is evaluation
3 Module 3: Handling Large Data Files (17)
===========================================
3.1 LO: getting started with lists (2) [amit]
----------------------------------------------
* empty
* filled lists
+ heterogenity
* accessing
* len
* =append= elements
* del (+ remove)
3.2 LO: getting started with =for= (2) [anoop]
-----------------------------------------------
* blocks in python
+ (indentation)
* blocks in ipython
+ ... prompt
+ hitting enter
* =for= with a list
* =range= function
3.3 LO: getting started with strings (2) [madhu]
-------------------------------------------------
* strings
+ single, double, triple quoted
* accessing elements
* show immutability
* tell that there are methods for manipulation
3.4 LO: getting started with files (3) [punch]
-----------------------------------------------
* show file object
* read the file with =read=
* closing the file
* for line in file:
* print a line
* append the lines to a list
3.5 LO: parsing data (3) [nishanth]
------------------------------------
* explain what is parsing
* strip (with strings)
* split (with strings)
+ with delimiters
- specify space as delimiter
* datatype conversion
* reading from files
+ do the same problem done with loadtxt (for pendulum)
+ basic parse sslc text
3.6 LO: statistics (2) [amit]
------------------------------
* mean
+ summing
* median
* std
3.7 LO: module level assessment (3) [madhu]
--------------------------------------------
* mean g
4 Module 4: Arrays and Matrices (14)
=====================================
4.1 LO: getting started with arrays (2) [anoop]
------------------------------------------------
* why arrays
+ speed - simply say
+ array level operations
* creating arrays
+ direct data
+ list conversion
+ homogeneous
+ builtins - identitiy, zeros,
* array operations
+ =+ - * /=
4.2 LO: accessing parts of arrays (4) [punch]
----------------------------------------------
* accessing individual elements
* slicing, striding
* image manipulation
4.3 LO: Matrices (3) [anoop]
-----------------------------
* creating matrices
+ direct data
+ list conversion
+ builtins - identitiy, zeros,
* matrix operations
+ + - * /
+ dot
+ inv
+ det
+ eig
+ norm
+ svd
4.4 LO: Least square fit (2) [nishanth]
----------------------------------------
* show pendulum
+ use loadtxt
* lstsq
4.5 LO: Assessment (3) [punch]
-------------------------------
* extract faces from a group photograph
5 Module 5: using Sage (13)
============================
5.1 LO: getting started with sage notebook (3) [madhu]
-------------------------------------------------------
* about sage
+ ...
* starting the notebook server
* using the UI
+ typesetting & print
+ selecting language
- sage
- LaTeX
- python
+ help
- sum(<tab>
- ?
5.2 LO: getting started with symbolics (3) [amit]
--------------------------------------------------
* symbolic expressions
+ built-in constants & functions
+ algebraic expressions,
+ series
+ integration, differentiation
+ matrices
* symbolic functions
+ defining
* simplification
* finding roots & factors
* substituting expressions
* output formats
5.3 LO: using Sage (4) [punch]
-------------------------------
* ABCD
+ Degree
- RBT - U
* Calculus
+ limits
+ differentiation
+ integration
- indefinite
- definite
+ piece-wise functions
+ differential equations
+ maxima, minima
* Linear Algebra
+ Vectors and Matrices
- constructions
+ Vector Operations
- linear combination
- dot
- cross
- pairwise
+ Matrix Operations
- linear combination
- matrix multiplication
- inverse
- transpose
- adjoint
- rank
- determinant
- trace
- norm
+ Solving equations
+ Eigenvalues, eigenvectors
* Graph Theory
* Number Theory
5.4 LO: using sage to teach (3) [nishanth]
-------------------------------------------
* @interact
* 2D, 3D graphics
* Graph Theory
* Share, Publish
* print
5.5 LO: Assessment (3) [anoop]
-------------------------------
* 5 questions
* choice of exercises from one area
6 Module 6: Python Language: Basics (12)
=======================================
6.1 LO: basic datatypes & operators (4) [amit]
----------------------------------------------
* int
+ L, long
* float
+ repr, str
* complex
+ methods like imag, real
* boolean
+ short circuit logic
* conversion functions
* sequence datatypes & mutability
+ list available sequence datatypes
- string
- list
- tuple
+ mutability
+ conversion
+ common stuff
- len
- in
- max, min, sum, sorted, reversed
- accessing individual elements
- slicing, striding
- containership
6.2 LO: I/O (1) [nishanth]
--------------------------
* print statement
* raw_input
6.3 LO: conditionals (2) [Madhu]
--------------------------------
* if, elif, else
* pass
* ternary operator
6.4 LO: loops (2) [punch]
-------------------------
* while
* for
* pass, break, continue
6.5 LO: Assessment (3) [Anoop]
------------------------------
* 10 Questions
* One of collatz or armstrong numbers
7 Module 7: Python Language: Datastructures (14)
================================================
7.1 LO: manipulating lists (3) [Madhu]
--------------------------------------
* concatenation
* slicing
* striding
* .sort
* sorted
* .reverse
* reversed
7.2 LO: manipulating strings (2) [punch]
----------------------------------------
* upper, lower,
* replace
* slicing
* [::-1]
* reversed
* palindrome check
7.3 LO: getting started with tuples (2) [nishanth]
--------------------------------------------------
* immutability
* tuple packing, unpacking
+ a, b = b, a
* accessing individual elements
* slicing, striding
7.4 LO: dictionaries (2) [anoop]
--------------------------------
* empty
* filled
* accessing via keys
* .values(), .keys()
* in
* iteration
7.5 LO: sets (2) [nishanth]
---------------------------
* Operations
+ Union
+ Intersection
+ Complement
+ Symmetric Difference
* Containership
* Subset
* len
7.6 LO: Assessment (3) [amit]
-----------------------------
* 10 Questions
* Anagrams for sets and dictionaries
* A problem for lists and strings
8 Module 8: Python Language: Advanced (16)
==========================================
8.1 LO: getting started with functions (3) [anoop]
-----------------------------------------------------
* defining function
* arguments
* docstrings
* return values
+ can return multiple values
* code reading exercises
8.2 LO: advanced features of functions (3) [punch]
--------------------------------------------------
* default arguments
* keyword arguments
* built-in functions show off
8.3 LO: using python modules (3) [anoop]
----------------------------------------
* executing python scripts from command line
* import
* scipy
* pylab
* sys
* STDLIB modules show off
8.4 LO: writing python scripts (2) [nishanth]
----------------------------------------------
* importing our own modules
* if __name__ == '__main__'
8.5 LO: testing and debugging (2) [amit]
----------------------------------------
* Types of errors and exceptions
* Strategy for debugging
+ Using print
8.6 LO: Assessment (3) [punch]
------------------------------
* 10 Questions
* Find four digit numbers whose digits are all even
* Write a script to use methods from pylab (like plot, show and other commands) and execute it as a stand-alone script
|