Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix magics history in two-process ipython console #1114

Closed
wants to merge 1 commit into from

Conversation

ivanov
Copy link
Member

@ivanov ivanov commented Dec 7, 2011

Hey, I was going to comment about this issue on #864, but it's now merged! :)

Before this commit, magics were store as "translated" for ipython console

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

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
@ivanov ivanov closed this in bfdb4a1 Dec 7, 2011
@minrk
Copy link
Member

minrk commented Dec 7, 2011

thanks!

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
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 ipython#1114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants