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
pyin message now have execution_count #1620
Conversation
Looks clean to me, will also give time so others can review. Thanks! |
Don't worry about pykernel. ~nobody uses it, and it should just be removed (I've been working on merging the Kernel implementations for Engines/Kernels, and that branch removes pykernel). |
This looks good to me, +1 to merge. |
Great, merging now. Thanks @ivanov ! |
@fperez pykernel has always violated the message spec all over the place, and we should just remove it. I wouldn't bother adding this to it. |
If you do want to fix it in pykernel: the value should just be 0 or None, because execution count is not defined for a non-IPython kernel. but my vote is to simply ignore it and merge as-is. |
Ah, hold on; I failed to realize that the problem was in pykernel, which @minrk already said is slated for the guillotine. Let's just merge as-is. I'll do so right now, thanks everyone! (and sorry for my confusion) |
Set the `execution_count` field for pyin messages. Closes #1619.
Set the `execution_count` field for pyin messages. Closes ipython#1619.
This addresses #1619.
One remaining instance of a 'pyin' message that currently lacks execution_count is found on line 112 of
IPython/zmq/pykernel.py
- I'm not sure when this code path is used, and what the appropriate way to proceed there is.@minrk, I'm ping-ponging this one back at you :)