ipython: Install on Debian

debiansept:~# easy_install-2.5 ipython
Searching for ipython
Reading http://pypi.python.org/simple/ipython/
Reading http://ipython.scipy.org
Reading http://ipython.scipy.org/dist
Best match: ipython 0.9.1
Downloading http://ipython.scipy.org/dist/ipython-0.9.1-py2.5.egg
Processing ipython-0.9.1-py2.5.egg
creating /usr/lib/python2.5/site-packages/ipython-0.9.1-py2.5.egg
Extracting ipython-0.9.1-py2.5.egg to /usr/lib/python2.5/site-packages
Adding ipython 0.9.1 to easy-install.pth file
Installing iptest script to /usr/bin
Installing ipythonx script to /usr/bin
Installing ipcluster script to /usr/bin
Installing ipython script to /usr/bin
Installing pycolor script to /usr/bin
Installing ipcontroller script to /usr/bin
Installing ipengine script to /usr/bin

Installed /usr/lib/python2.5/site-packages/ipython-0.9.1-py2.5.egg
Processing dependencies for ipython
Finished processing dependencies for ipython

debiansept:~# ipython
**********************************************************************
Welcome to IPython. I will try to create a personal configuration directory
where you can customize many aspects of IPython’s functionality in:

/root/.ipython
Initializing from configuration /usr/lib/python2.5/site-packages/ipython-0.9.1-py2.5.egg/IPython/UserConfig

Successful installation!

Please read the sections ‘Initial Configuration’ and ‘Quick Tips’ in the
IPython manual (there are both HTML and PDF versions supplied with the
distribution) to make sure that your system environment is properly configured
to take advantage of IPython’s features.

Important note: the configuration system has changed! The old system is
still in place, but its setting may be partly overridden by the settings in
"~/.ipython/ipy_user_conf.py" config file. Please take a look at the file
if some of the new settings bother you.

Please press <RETURN> to start IPython.
**********************************************************************
Python 2.5 (release25-maint, Jul 20 2008, 20:47:25)
Type "copyright", "credits" or "license" for more information.

IPython 0.9.1 — 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 [1]: ?

In [2]: help
Out[2]: Type help() for interactive help, or help(object) for help about object.

In [3]: help(dir)

In [4]: a
—————————————————————————
NameError                                 Traceback (most recent call last)

/root/<ipython console> in <module>()

NameError: name ‘a’ is not defined

In [5]: a=’fdsa’

In [6]: a
Out[6]: ‘fdsa’

In [7]: `date`
—————————————————————————
NameError                                 Traceback (most recent call last)

/root/<ipython console> in <module>()

NameError: name ‘date’ is not defined

In [8]: import commands

In [9]: dir(commands)
Out[9]:
[‘__all__’,
‘__builtins__’,
‘__doc__’,
‘__file__’,
‘__name__’,
‘getoutput’,
‘getstatus’,
‘getstatusoutput’,
‘mk2arg’,
‘mkarg’]

In [10]: commands.getoutput(‘date’)
Out[10]: ‘Mon Nov 10 14:30:45 JST 2008’

In [11]: q
—————————————————————————
NameError                                 Traceback (most recent call last)

/root/<ipython console> in <module>()

NameError: name ‘q’ is not defined

In [12]:
Do you really want to exit ([y]/n)?

debiansept:~# cat .ipython/history
?
help
help(dir)
a
a=’fdsa’
a
`date`
import commands
dir(commands)
commands.getoutput(‘date’)
q
y

カテゴリー: 未分類 パーマリンク

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中