文档介绍:IPython
Components for Interactive puting
Fernando Pérez
Brian E. Granger
Fernando.******@
******@
Helen Wills Neuroscience Instiute, . Berkeley
Physics, California Polytechnic State University, San Luis Obispo
SIAM CSE 09, Miami
March 5, 2009
Outline
1 puting
Inherently exploratory
Python?
2 IPython: Interactive Python
3 Users
FP/BG (UC Berkeley/CalPoly) Python & puting SIAM, 3/5/09 2 / 28
p
Outline
1 puting
Inherently exploratory
Python?
2 IPython: Interactive Python
3 Users
FP/BG (UC Berkeley/CalPoly) Python & puting SIAM, 3/5/09 3 / 28
p Inherently exploratory
puting
puter as a microscope
Problem’s definition evolves as we understand it.
No ‘requirements’ to build an application against.
Mathematica, Maple, Matlab, IDL, etc.
All have an interactive environment.
Applications Languages
FP/BG (UC Berkeley/CalPoly) Python & puting SIAM, 3/5/09 4 / 28
p Python
Python?
Primitive interactive interpreter provided.
Very good introspection.
All entities can be inspected at runtime by the language itself.
Dynamic reloading of (most) code.
Builtin documentation for objects (docstrings).
Live and post-mortem interactive debugging.
Note: Applications can also be built (easier than in C/Fortran).
FP/BG (UC Berkeley/CalPoly) Python & puting SIAM, 3/5/09 5 / 28
IPython
Outline
1 puting
Inherently exploratory
Python?
2 IPython: Interactive Python
3 Users
FP/BG (UC Berkeley/CalPoly) Python & puting SIAM, 3/5/09 6 / 28
IPython
What is IPython?
1 A better Python shell: object introspection, system access, ‘magic’
command system, . . .
2 An embeddable interpreter: mix batch and interactive work.
3 A ponent: tweak to taste for your project.
4 An ponent plug into GUIs, browsers, etc.
5 High level distributed/puting: next talk.
FP/BG (UC Berkeley/CalPoly) Python & puting SIAM, 3/5/09 7 / 28
IPython
Quick overview
History
Started in late 2001, ‘just one aftern