Show More
@@ -26,7 +26,7 b' from prompt_toolkit.styles import PygmentsStyle, DynamicStyle' | |||||
26 | from pygments.styles import get_style_by_name, get_all_styles |
|
26 | from pygments.styles import get_style_by_name, get_all_styles | |
27 | from pygments.token import Token |
|
27 | from pygments.token import Token | |
28 |
|
28 | |||
29 | from .debugger import TerminalPdb |
|
29 | from .debugger import TerminalPdb, Pdb | |
30 | from .pt_inputhooks import get_inputhook_func |
|
30 | from .pt_inputhooks import get_inputhook_func | |
31 | from .interactiveshell import get_default_editor, TerminalMagics |
|
31 | from .interactiveshell import get_default_editor, TerminalMagics | |
32 | from .ptutils import IPythonPTCompleter, IPythonPTLexer |
|
32 | from .ptutils import IPythonPTCompleter, IPythonPTLexer | |
@@ -59,6 +59,14 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
59 | """ |
|
59 | """ | |
60 | ).tag(config=True) |
|
60 | ).tag(config=True) | |
61 |
|
61 | |||
|
62 | @observe('simple_prompt') | |||
|
63 | def _simple_prompt_changed(self, changes): | |||
|
64 | if changes['new'] == True: | |||
|
65 | self.debugger_cls = Pdb | |||
|
66 | else: | |||
|
67 | self.debugger_cls = TerminalPdb | |||
|
68 | ||||
|
69 | ||||
62 | autoedit_syntax = Bool(False, |
|
70 | autoedit_syntax = Bool(False, | |
63 | help="auto editing of files with syntax errors.", |
|
71 | help="auto editing of files with syntax errors.", | |
64 | ).tag(config=True) |
|
72 | ).tag(config=True) |
General Comments 0
You need to be logged in to leave comments.
Login now