Error method is noncompliant to Jupyter protocol
See original GitHub issueI posted this issue on the octave_kernel repo, but after digging into the source, I discovered it may be generic to all kernels based on Metakernel. So here’s the issue description again: So when a kernel errors out, you should be sending back an execute-reply like this:
{
#...
'content':{
'status':'error',
'ename':<your_error_name>,
'evalue':<your_error_data>,
'traceback':<your_traceback>
}
#...
}
That way Jupyter can process that as a proper error and not just assume it is any old STDOUT. Right now it would be a the easiest (?) fix to just rename what you are already returning to ‘traceback’ and insert some dummy values for the fields that you can’t get easily.
It would be really awesome if this were fixed because it’s breaking my use case!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:39 (19 by maintainers)
Top Results From Across the Web
Messaging in Jupyter — jupyter_client 7.4.8 documentation
This dictionary structure is not part of the Jupyter protocol that must be ... When status is 'error', the usual content of a...
Read more >How to Fix Kernel Error in Jupyter Notebook
A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python...
Read more >Jupyter notebook error Windows 10 - python - Stack Overflow
I am the author of the question... The problem was a permissions issue, as I mentioned earlier, I did modify the system and...
Read more >coursera quiz answers pdf
4) The original and flawed wireless security protocol is known as WEP. ... Answers and Assigment Solutions. data-science solutions jupyter-notebook coursera ...
Read more >Error starting Python3 kernel inside Jupyter Notebook #4450
I'm having a problem with jupyter notebook kernels. ... HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So the train has kinda left the station for me to do this on my internship time, but I can probably hack around a little and talk about what this should look like on my free time. Maybe we should make an empty PR or something to talk out how this should look?
I had a pretty decent idea just a few minutes ago that might help us all out. If we called the repl in question with a bash pipe that padded stderr with somewhat long sequences of unprintable characters (that we know), then we could just regex on those sequences later and if they were long, uncommon, and unprintable, then it’s extremely unlikely to be something a user cared about seeing, and I can feel confident in calling it an actual error.