ipython_config.pyの設定メモ
Posted by hikaruworld : 2012 1月 5
メモです。
大したカスタマイズしていませんが。
# -*- coding: utf-8 -*- # Configuration file for ipython. c = get_config() # lines of code to run at IPython startup. # 頻繁に利用するライブラリをimport c.InteractiveShellApp.exec_lines = [ 'import os', 'import sys', 'import numpy' ] #------------------------------------------------------------------------------ # TerminalInteractiveShell configuration #------------------------------------------------------------------------------ # Set the editor used by IPython (default to $EDITOR/vi/notepad). # c.TerminalInteractiveShell.editor = 'vi' # デフォルトエディタをvimに c.TerminalInteractiveShell.editor = '/usr/bin/vim' # Enable auto setting the terminal title. # Terminalにタイトル表示 c.TerminalInteractiveShell.term_title = True # Automatically call the pdb debugger after every exception. # エラー発生時にpdbを起動 c.TerminalInteractiveShell.pdb = True #------------------------------------------------------------------------------ # PrefilterManager configuration #------------------------------------------------------------------------------ # 複数行のスクリプトを有効化...何だけどなんかうまく行かん... c.PrefilterManager.multi_line_specials = True #------------------------------------------------------------------------------ # AliasManager configuration #------------------------------------------------------------------------------ # lsやgrepをカラー設定 c.AliasManager.user_aliases = [ ('ls', 'ls -G'), ('grep', 'grep --color-auto') ]
コメントを残す