IPython で起動時に特定の処理を走らせる方法をご紹介します。 IPython で起動時の処理を設定するには「プロファイル」というものを利用する形となります( IPython 1.1 の場合)。 ちなみに、 IPython の 1.1 ではプロファイルを利用する形となっていますが、以前のバージョンでは .ipythonrc を使うなどその他の方法が採用されていたようです。 以下、具体的なやり方を見ていきます。対象となる IPython のバージョンは 1.1 です。 01 プロファイルの作成 まずは IPython の「プロファイル」というものを作成します。 some_profile_name のところを省略すれば、ホームディレクトリ以下に .ipython/profile_default ディレクトリが作られ、その中にデフォルトの設定ファイルが作成されます。今回はそこを省略したものと