Skip to content
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
  • Loading branch information...
1 parent 0b0a9b5 commit 7324dc55653a3e498448b904b9314a14e91f75a1 @ivanov 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)

0 comments on commit 7324dc5

Please sign in to comment.
Something went wrong with that request. Please try again.