[Tutor] Tk+Ipython unexpected behavior
"Jörg Wölke"
lumbricus at gmx.net
Tue Jan 27 05:29:03 CET 2009
* Kent Johnson <kent37 at tds.net> [090127 03:39]:
> Yes, it is a text app that runs in a console window. It has many
> features; my favorites are listed here:
> http://personalpages.tds.net/~kent37/kk/00011.html
The links on your page are broken:
See: http://ipython.scipy.org/doc/manual/html/
In fact Ipython is so feature rich, some people even use it as
login shell.
Short demo:
% ipython
Python 2.5.2 (r252:60911, Nov 14 2008, 19:46:32)
Type "copyright", "credits" or "license" for more information.
IPython 0.8.4 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [2]: %magic
IPython's 'magic' functions
===========================
The magic function system provides a series of functions which allow you to
control the behavior of IPython itself, plus a lot of system-type
features. All these functions are prefixed with a % character,
[ snip ]
In [8]: ls -a .zshrc
.zshrc*
In [9]: _i
Out[9]: u'_ip.system("ls -F -a .zshrc")\n'
In [12]: s = !ls -altr .zshrc
In [13]: s
Out[13]: SList (.p, .n, .l, .s, .grep(), .fields() available). Value:
0: -rw------- 1 joe joe 12753 2009-01-02 01:32 .zshrc
In [14]: for i in s:
....: print i
....:
....:
-rw------- 1 joe joe 12753 2009-01-02 01:32 .zshrc
In [18]: store s
Stored 's' (SList)
In [19]: store
Stored variables and their in-db values:
s -> ['-rw------- 1 joe joe 12753 2009-01-02 01:32 .zsh
In [20]: a="/tmp"
In [21]: ls $a
jRs.tmp lost+found/
In [22]: %edit # opens Editor
etc...
--
Freedom, Freedom, Freedom, Oi!
-- Zoidberg
NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
More information about the Tutor
mailing list