Menu

[r6967]: / trunk / py4science / doc / workflow_notes.txt  Maximize  Restore  History

Download this file

67 lines (40 with data), 1.7 kB

 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
=================
Python workflow
=================
ipython. Saving and reloading files, interactive use of variables, %run,
%debug, %xmode verbose.
* Workflow, guided by a simple examples and students typing along. Will show
basics of everyday workflow as we cover the core concepts.
* A very quick overview of the language.
* Basic scalar types: strings and numbers (int, float, complex).
* Basic collections: lists and dicts (mention tuples and sets).
* Quick review of control flow: if, for, range, while, break, continue.
* Defining functions. Arguments and docstrings.
* Reusing your code: every script is a module, '__main__' (notes on module
loading and reloading)
* Exceptions: a core concept in Python, you really can't use the language
without them.
* Debugging your programs:
* Ye olde print statement.
* %debug in ipython.
* %run -d in ipython.
* winpdb - a free, cross-platform GUI debugger.
* Testing your code: reproducible research from the start. Making a habit
out of having auto-validated code.
* Quicksort together.
Getting help:
- pydoc (-g, -p)
- The standard docs (bookmark them)
- ipython ?/??, help(), the tab key. numpy.*cos*? search.
- The open source process: mailing lists, wikis, svn. Python
cookbook. Participate!
Basic setup:
- ipython
- matplotlib (latex, etc).
- Modules: import/reload, PYTHONPATH.
- Urllib Yahoo finance demo.
ToDo: Add numerical error measure of trapezoid rule.
ToDo Add in workflow comparison with scipy's integration. compare timing and
eror.
ToDo: write cheat-sheet.
- Urllib Yahoo finance demo: examples/stock_demo.py
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.