-
Notifications
You must be signed in to change notification settings - Fork 86
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
Doesn't report error status in execute_reply
msg
#175
Comments
Thanks for the report! I guess we'll have to inspect the output, looking for text that indicates that the command has failed. I don't have a Matlab license, so we'll either need some examples of what failing code looks like, or someone to submit a PR. |
This
I can share the whole output if you need it. |
We could just declare that any output on stderr indicates that there was an error (especially if there were also no stdout output). That may not be 100% correct as one could (maybe?) output to stderr without it being an actual error? |
Looks like that is what metakernel/metakernel/process_metakernel.py Lines 116 to 120 in 0d5dafe
|
yes output from I don't know how |
|
Can you help me on debugging that ?
|
I think you can run the kernel that way (at least I can run other metakernels that way). But perhaps you should use python (rather than ipython) and maybe python3 instead of python2. |
same things is happening with python2 and python3
|
I have checked the #149 which is similar to this scenario, except the octave vs matlab distinction. I am trying to understand the flow of execution, and I think it is like metakernel/metakernel/_metakernel.py Line 381 in 0d5dafe
retval from the do_execute_direct here https://github.com/Calysto/matlab_kernel/blob/master/matlab_kernel/kernel.py#L84 , which should be object of ExceptionWrapper metakernel/metakernel/_metakernel.py Line 51 in 0d5dafe
I think this is the issue which needs to be fixed, correct me if I am wrong. |
That sounds right. Thanks for looking into this! |
Version info
I am running a matlab code with
matlab_kernel
having a syntax error, and tracking the messages from the iopub channel.This is the
execute_reply
msg from the iopub channel.When matlab encounter the error while executing the code, the
status
(under thecontent
) should beerror
instead ofok
.ref: https://jupyter-client.readthedocs.io/en/stable/messaging.html#request-reply
The text was updated successfully, but these errors were encountered: