pykd
1from IPython.config.loader import Config2from IPython.terminal.embed import InteractiveShellEmbed3
4from IPython.terminal.interactiveshell import TerminalInteractiveShell5
6import pykd7
8cfg = Config()9
10cfg.InteractiveShell.colors = 'NoColor'11cfg.InteractiveShell.readline_use = False12cfg.InteractiveShell.autoindent = True13
14cfg.PromptManager.in_template = 'In <\\#>: '15cfg.PromptManager.in2_template = ' .\\D.: '16cfg.PromptManager.out_template = 'Out<\\#>: '17
18#cfg.InteractiveShellApp.extensions = [ 'pykdmagic' ]
19
20ipshell = InteractiveShellEmbed(config=cfg)21
22ipshell()23