beer2011のブログ

田舎の日常、釣りや、ネット、Apple関係などの内容をカキコします。(特に)プログラミング関係はど素人ですので、あまり当てにされませぬように・・。(^^;) 「次ページ」や「過去記事」などのリンクは、下の方にあります。

IPythonとは・・

便利だということで、(ごにょごにょと)インストールしてみた。
情報をよく仕入れないまま、相変わらずの、見切り発車デッス。

インストール後に、ipython --pylab
としてみるが・・

ipython --pylab
/Library/Python/2.7/site-packages/IPython/utils/rlineimpl.py:94: RuntimeWarning:

*****************************************************************************

libedit detected - readline will not be well behaved, including but not limited to:
* crashes on tab completion
* incorrect history navigation
* corrupting long-lines
* failure to wrap or indent lines properly
It is highly recommended that you install readline, which is easy_installable:
easy_install readline
Note that `pip install readline` generally DOES NOT WORK, because
it installs to site-packages, which come *after* lib-dynload in sys.path,
where readline is located. It must be `easy_install readline`, or to a custom
location on your PYTHONPATH (even --user comes after lib-dyload).

*****************************************************************************

readlineがインストールされていない、との内容か?

そこで、sudo easy_install readline を実行して、

ipython --pylab
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
Type "copyright", "credits" or "license" for more information.

IPython 1.2.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', use 'object??' for extra details.
Using matplotlib backend: MacOSX

In [1]:

といった感じで、起動OK。
ほんとに、便利かどうかは、これから試してみることにしよう。