2013-10-25 20:08:20 +08:00
|
|
|
from IPython.config.loader import Config
|
|
|
|
from IPython.terminal.embed import InteractiveShellEmbed
|
|
|
|
|
|
|
|
from IPython.terminal.interactiveshell import TerminalInteractiveShell
|
|
|
|
|
|
|
|
import pykd
|
|
|
|
|
|
|
|
cfg = Config()
|
|
|
|
|
|
|
|
cfg.InteractiveShell.colors = 'NoColor'
|
|
|
|
cfg.InteractiveShell.readline_use = False
|
|
|
|
cfg.InteractiveShell.autoindent = True
|
|
|
|
|
|
|
|
cfg.PromptManager.in_template = 'In <\\#>: '
|
|
|
|
cfg.PromptManager.in2_template = ' .\\D.: '
|
|
|
|
cfg.PromptManager.out_template = 'Out<\\#>: '
|
|
|
|
|
2015-04-30 20:14:34 +08:00
|
|
|
#cfg.InteractiveShellApp.extensions = [ 'pykdmagic' ]
|
2013-10-25 20:08:20 +08:00
|
|
|
|
|
|
|
ipshell = InteractiveShellEmbed(config=cfg)
|
|
|
|
|
2015-04-30 20:14:34 +08:00
|
|
|
ipshell()
|