LoginSignup
1
1

More than 5 years have passed since last update.

IPythonのプロンプトを起動時に'>>>'に変更する設定

Posted at

0.12では, doctest_modeというマジックコマンドでプロンプトを'>>>'に変更できる.

In [1]: %doctest_mode
Exception reporting mode: Plain
Doctest mode is: ON
>>>

毎回打つのは面倒なので,起動時に自動で変更するように,以下のエイリアスを定義する.

alias ipy='ipython -ic "%doctest_mode"'

なお0.12より以前のバージョン(もっと前かも)では, 'ipython -cl'で同様の処理ができていたようです.

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1