pykd/snippets/ipython.py
SND\kernelnet_cp 29e42ed852 [0.3.x] fixed : exec_file raise std exception
git-svn-id: https://pykd.svn.codeplex.com/svn@90543 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00

23 lines
592 B
Python

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<\\#>: '
#cfg.InteractiveShellApp.extensions = [ 'pykdmagic' ]
ipshell = InteractiveShellEmbed(config=cfg)
ipshell()