Skip to content

Commit

Permalink
fix magics history in two-process ipython console
Browse files Browse the repository at this point in the history
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
ivanov authored and minrk committed Dec 7, 2011
1 parent 26dd071 commit bfdb4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/frontend/terminal/console/interactiveshell.py
Expand Up @@ -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)

Expand Down

0 comments on commit bfdb4a1

Please sign in to comment.