Show More
@@ -650,6 +650,7 b" def magic_history(self, parameter_s = ''):" | |||||
650 | if 'g' in opts: # Glob search |
|
650 | if 'g' in opts: # Glob search | |
651 | pattern = "*" + args + "*" if args else "*" |
|
651 | pattern = "*" + args + "*" if args else "*" | |
652 | hist = history_manager.search(pattern, raw=raw, output=get_output) |
|
652 | hist = history_manager.search(pattern, raw=raw, output=get_output) | |
|
653 | print_nums = True | |||
653 | elif 'l' in opts: # Get 'tail' |
|
654 | elif 'l' in opts: # Get 'tail' | |
654 | try: |
|
655 | try: | |
655 | n = int(args) |
|
656 | n = int(args) |
@@ -31,7 +31,7 b' from IPython.core.magic import MacroToEdit' | |||||
31 | from IPython.core.payloadpage import install_payload_page |
|
31 | from IPython.core.payloadpage import install_payload_page | |
32 | from IPython.utils import io |
|
32 | from IPython.utils import io | |
33 | from IPython.utils.path import get_py_filename |
|
33 | from IPython.utils.path import get_py_filename | |
34 | from IPython.utils.traitlets import Instance, Type, Dict |
|
34 | from IPython.utils.traitlets import Instance, Type, Dict, CBool | |
35 | from IPython.utils.warn import warn |
|
35 | from IPython.utils.warn import warn | |
36 | from IPython.zmq.displayhook import ZMQShellDisplayHook, _encode_png |
|
36 | from IPython.zmq.displayhook import ZMQShellDisplayHook, _encode_png | |
37 | from IPython.zmq.session import extract_header |
|
37 | from IPython.zmq.session import extract_header | |
@@ -80,6 +80,11 b' class ZMQInteractiveShell(InteractiveShell):' | |||||
80 | displayhook_class = Type(ZMQShellDisplayHook) |
|
80 | displayhook_class = Type(ZMQShellDisplayHook) | |
81 | display_pub_class = Type(ZMQDisplayPublisher) |
|
81 | display_pub_class = Type(ZMQDisplayPublisher) | |
82 |
|
82 | |||
|
83 | # Override the traitlet in the parent class, because there's no point using | |||
|
84 | # readline for the kernel. Can be removed when the readline code is moved | |||
|
85 | # to the terminal frontend. | |||
|
86 | readline_use = CBool(False) | |||
|
87 | ||||
83 | exiter = Instance(ZMQExitAutocall) |
|
88 | exiter = Instance(ZMQExitAutocall) | |
84 | def _exiter_default(self): |
|
89 | def _exiter_default(self): | |
85 | return ZMQExitAutocall(self) |
|
90 | return ZMQExitAutocall(self) |
General Comments 0
You need to be logged in to leave comments.
Login now