Under console://ipython command Rich example: LS display directory
Ipython--pylab
%run-p *.pyquit off
Example:
in [7]:%run-P test.py3Hello World!Wuyi functionCallsinch 0.004seconds Ordered by:internal Timencalls tottime percall cumtime percall Filename:lineno (function) 1 0.002 0.002 0.004 0.004test.py:1(<module>) 1 0.001 0.001 0.001 0.001test.py:1(foo)2 0.000 0.000 0.000 0.000{Open}1 0.000 0.000 0.000 0.000{Compile}1 0.000 0.000 0.004 0.004interactiveshell.py:2443(Safe_execfile)1 0.000 0.000 0.000 0.000{method'Read'Of'file'Objects}1 0.000 0.000 0.004 0.004py3compat.py:268(execfile)1 0.000 0.000 0.000 0.000ntpath.py:415(Normpath)2 0.000 0.000 0.000 0.000ntpath.py: the(splitdrive)2 0.000 0.000 0.000 0.000{method'encode'Of'Unicode'Objects}1 0.000 0.000 0.000 0.000syspathcontext.py: -(__exit__)1 0.000 0.000 0.000 0.000ntpath.py:174(Split) 1 0.000 0.000 0.004 0.004<string:1(<module>) 1 0.000 0.000 0.000 0.000syspathcontext.py: $(__enter__)1 0.000 0.000 0.000 0.000ntpath.py:213(dirname) 2 0.000 0.000 0.000 0.000py3compat.py: +(encode)1 0.000 0.000 0.000 0.000syspathcontext.py: Wu(__init__)1 0.000 0.000 0.000 0.000ntpath.py:483(Abspath)1 0.000 0.000 0.000 0.000py3compat.py: in(cast_bytes)1 0.000 0.000 0.000 0.000{Nt._getfullpathname}2 0.000 0.000 0.000 0.000{method'StartsWith'Of'Unicode'Objects}1 0.000 0.000 0.000 0.000{method'Remove'Of'List'Objects}1 0.000 0.000 0.000 0.000ntpath.py:285(Expanduser)3 0.000 0.000 0.000 0.000{method'Replace'Of'Unicode'Objects}8 0.000 0.000 0.000 0.000{len}1 0.000 0.000 0.000 0.000{method'Join'Of'Unicode'Objects}---Return to continue, Q to quit---
Ipython is another convenient debugging and application tool!!!