question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error method is noncompliant to Jupyter protocol

See original GitHub issue

I 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:39 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
JMurph2015commented, Jul 14, 2017

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?

1reaction
JMurph2015commented, Jul 14, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found