Show More
@@ -32,7 +32,7 b' from IPython.core.shellapp import (' | |||||
32 | InteractiveShellApp, shell_flags, shell_aliases |
|
32 | InteractiveShellApp, shell_flags, shell_aliases | |
33 | ) |
|
33 | ) | |
34 | from IPython.extensions.storemagic import StoreMagics |
|
34 | from IPython.extensions.storemagic import StoreMagics | |
35 |
from .ptshell import |
|
35 | from .ptshell import TerminalInteractiveShell | |
36 | from IPython.utils import warn |
|
36 | from IPython.utils import warn | |
37 | from IPython.paths import get_ipython_dir |
|
37 | from IPython.paths import get_ipython_dir | |
38 | from traitlets import ( |
|
38 | from traitlets import ( |
@@ -45,7 +45,7 b' class IPythonPTCompleter(Completer):' | |||||
45 | for m in matches: |
|
45 | for m in matches: | |
46 | yield Completion(m, start_position=start_pos) |
|
46 | yield Completion(m, start_position=start_pos) | |
47 |
|
47 | |||
48 |
class |
|
48 | class TerminalInteractiveShell(InteractiveShell): | |
49 | colors_force = True |
|
49 | colors_force = True | |
50 |
|
50 | |||
51 | pt_cli = None |
|
51 | pt_cli = None | |
@@ -187,7 +187,7 b' class PTInteractiveShell(InteractiveShell):' | |||||
187 | io.stderr = io.IOStream(sys.stderr) |
|
187 | io.stderr = io.IOStream(sys.stderr) | |
188 |
|
188 | |||
189 | def __init__(self, *args, **kwargs): |
|
189 | def __init__(self, *args, **kwargs): | |
190 |
super( |
|
190 | super(TerminalInteractiveShell, self).__init__(*args, **kwargs) | |
191 | self.init_prompt_toolkit_cli() |
|
191 | self.init_prompt_toolkit_cli() | |
192 | self.keep_running = True |
|
192 | self.keep_running = True | |
193 |
|
193 | |||
@@ -237,4 +237,4 b' class PTInteractiveShell(InteractiveShell):' | |||||
237 | self._inputhook = None |
|
237 | self._inputhook = None | |
238 |
|
238 | |||
239 | if __name__ == '__main__': |
|
239 | if __name__ == '__main__': | |
240 |
|
|
240 | TerminalInteractiveShell.instance().interact() |
General Comments 0
You need to be logged in to leave comments.
Login now