Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix magics history in two-process ipython console

Before this commit:
    In [1]: %hist
    get_ipython().magic(u'hist')

    In [2]: a?
    Object `a` not found.

    In [3]: hist
    get_ipython().magic(u'hist')
    get_ipython().magic(u'pinfo a')
    hist

After this commit:
    In [1]: %hist
    %hist

    In [2]: a?
    Object `a` not found.

    In [3]: hist
    %hist
    a?
    hist

closes #1114
  • Loading branch information...
commit bfdb4a108f66530e20725d801e4bfd5b0d55e8c2 1 parent 26dd071
@ivanov ivanov authored minrk committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  IPython/frontend/terminal/console/interactiveshell.py
View
2  IPython/frontend/terminal/console/interactiveshell.py
@@ -333,7 +333,7 @@ def interact(self, display_banner=None):
self.autoedit_syntax):
self.edit_syntax_error()
if not more:
- source_raw = self.input_splitter.source_reset()
+ source_raw = self.input_splitter.source_raw_reset()[1]
hlen_b4_cell = self._replace_rlhist_multiline(source_raw, hlen_b4_cell)
self.run_cell(source_raw)
Please sign in to comment.
Something went wrong with that request. Please try again.