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

Qt frontend: Handle 'aborted' prompt replies. #4800

Merged
merged 1 commit into from Jan 15, 2014

Conversation

pankajp
Copy link
Contributor

@pankajp pankajp commented Jan 14, 2014

On some rare occasions, the execution request for prompt
is aborted by the kernel (due to an error in another execution request -
https://github.com/ipython/ipython/blob/master/IPython/kernel/zmq/ipkernel.py#L469 ),
which is not handled gracefully by the ipython qt frontend widget
raising KeyError: 'execution_count'

Traceback (most recent call last):
  File "/home/pankaj/work/ipython/IPython/qt/base_frontend_mixin.py", line 138, in _dispatch
    handler(msg)
  File "/home/pankaj/work/ipython/IPython/qt/console/ipython_widget.py", line 178, in _handle_execute_reply
    number = msg['content']['execution_count'] + 1
KeyError: 'execution_count'

This commit simply handles 'aborted' prompt requests by retrying it.

On some rare occasions, the execution request for prompt
is aborted by the kernel (due to an error in another execution
request), which is not handled gracefully by the ipython frontend
raising `KeyError: 'execution_count'`
This commit simply handles 'aborted' prompt requests by retrying it.
minrk added a commit that referenced this pull request Jan 15, 2014
Qt frontend: Handle 'aborted' prompt replies.
@minrk minrk merged commit d0865cf into ipython:master Jan 15, 2014
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Qt frontend: Handle 'aborted' prompt replies.
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