1. Open demo1.py
2. Start ipython (C-c ! for me, or M-x ipython).
3. In the *Ipython* buffer
In [1]: import demo1
In [2]: demo1.f()
Hello from f
Hello from g
Hello from h -- just before exception
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
/Users/reverson/projects/edge/<ipython-input-2-1cebb13502c5> in <module>()
----> 1 demo1.f()
/Users/reverson/projects/edge/demo1.pyc in f()
2 def f():
3 print 'Hello from f'
----> 4 g()
5
6 def g():
/Users/reverson/projects/edge/demo1.pyc in g()
6 def g():
7 print 'Hello from g'
----> 8 h()
9
10 def h():
/Users/reverson/projects/edge/demo1.pyc in h()
10 def h():
11 print 'Hello from h -- just before exception'
---> 12 1.0/0.0
ZeroDivisionError: float division by zero
4. Press C-c - repeatedly to go up the stack (beautiful!) until the top of the stack is reached. At this point the cursor in my *IPython* buffer is on the "/Users/reverson/projects/edge/<ipython-input-2-1cebb13502c5> in <module>()" line and I get "Top of traceback" in the minibuffer.
5. Press C-c = to go back down the stack. Here's problem: nothing happens except "Bottom of traceback" in the mb. With standard Python, C-c = takes you back down the stack trace.
6. (Diagnostic) If you move the cursor in the *IPython* buffer to the next line down ("----> 1 demo1.f()") or further down, then C-c = correctly takes you down the stack trace.
Hope this makes sense.
Best,
Richard.
On 11 Jan 2012, at 09:45, Andreas Roehler wrote:
> Hi Richard,
>
> can't reproduce with examples available.
>
> Could you send some more detailed description?
>
> thanks,
>
> Andreas
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/914607
>
> Title:
> py-down-exception IPython bug
>
> Status in An Emacs mode for editing Python code:
> In Progress
>
> Bug description:
>
> If
>> you use C-c - to go all the way to the top of the stack trace (in
>> IPython), you can't use C-c = to come back down again unless you first
>> move the cursor in the *IPython* buffer down a line from the
>> "/Users/reverson/projects/edge/<ipython-input-2-1cebb13502c5> in
>> <module>()" line --- pressing C-c = just gives a message "Bottom of
>> traceback". This works fine with plain Python, but I can't see
>> precisely what's causing it.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-mode/+bug/914607/+subscriptions
Hi Andreas,
What I did is:
1. Open demo1.py
2. Start ipython (C-c ! for me, or M-x ipython).
3. In the *Ipython* buffer
In [1]: import demo1
In [2]: demo1.f() ------- ------- ------- ------- ------- ------- ------- ------- ------- ----- reverson/ projects/ edge/<ipython- input-2- 1cebb13502c5> in <module>()
Hello from f
Hello from g
Hello from h -- just before exception
-------
ZeroDivisionError Traceback (most recent call last)
/Users/
----> 1 demo1.f()
/Users/ reverson/ projects/ edge/demo1. pyc in f()
2 def f():
3 print 'Hello from f'
----> 4 g()
5
6 def g():
/Users/ reverson/ projects/ edge/demo1. pyc in g()
6 def g():
7 print 'Hello from g'
----> 8 h()
9
10 def h():
/Users/ reverson/ projects/ edge/demo1. pyc in h()
10 def h():
11 print 'Hello from h -- just before exception'
---> 12 1.0/0.0
ZeroDivisionError: float division by zero
4. Press C-c - repeatedly to go up the stack (beautiful!) until the top of the stack is reached. At this point the cursor in my *IPython* buffer is on the "/Users/ reverson/ projects/ edge/<ipython- input-2- 1cebb13502c5> in <module>()" line and I get "Top of traceback" in the minibuffer.
5. Press C-c = to go back down the stack. Here's problem: nothing happens except "Bottom of traceback" in the mb. With standard Python, C-c = takes you back down the stack trace.
6. (Diagnostic) If you move the cursor in the *IPython* buffer to the next line down ("----> 1 demo1.f()") or further down, then C-c = correctly takes you down the stack trace.
Hope this makes sense.
Best,
Richard.
On 11 Jan 2012, at 09:45, Andreas Roehler wrote:
> Hi Richard, /bugs.launchpad .net/bugs/ 914607 reverson/ projects/ edge/<ipython- input-2- 1cebb13502c5> in /bugs.launchpad .net/python- mode/+bug/ 914607/ +subscriptions
>
> can't reproduce with examples available.
>
> Could you send some more detailed description?
>
> thanks,
>
> Andreas
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> py-down-exception IPython bug
>
> Status in An Emacs mode for editing Python code:
> In Progress
>
> Bug description:
>
> If
>> you use C-c - to go all the way to the top of the stack trace (in
>> IPython), you can't use C-c = to come back down again unless you first
>> move the cursor in the *IPython* buffer down a line from the
>> "/Users/
>> <module>()" line --- pressing C-c = just gives a message "Bottom of
>> traceback". This works fine with plain Python, but I can't see
>> precisely what's causing it.
>
> To manage notifications about this bug go to:
> https:/