Skip to content

Commit

Permalink
Merge pull request ipython#2170 from bfroehle/embed_kernel_completer
Browse files Browse the repository at this point in the history
Fix tab completion with IPython.embed_kernel().

Closes ipython#2162.
  • Loading branch information
fperez committed Jul 20, 2012
2 parents 3d8cd1d + 28ac448 commit f2f5d22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion IPython/core/interactiveshell.py
Expand Up @@ -1809,7 +1809,6 @@ def init_readline(self):
self.readline_no_record = no_op_context
self.set_readline_completer = no_op
self.set_custom_completer = no_op
self.set_completer_frame = no_op
if self.readline_use:
warn('Readline services not available or not loaded.')
else:
Expand Down
1 change: 1 addition & 0 deletions IPython/zmq/ipkernel.py
Expand Up @@ -908,6 +908,7 @@ def embed_kernel(module=None, local_ns=None, **kwargs):

app.kernel.user_module = module
app.kernel.user_ns = local_ns
app.shell.set_completer_frame()
app.start()

def main():
Expand Down

0 comments on commit f2f5d22

Please sign in to comment.