KernelApp sets sys.displayhook to ZMQDisplayhook, which sends execute_result messages without an execution_count, crashing jupyter_console.
We don't see this in our own code because ZMQInteractiveShell then overrides it with ZMQShellDisplayHook, which works correctly. But this is an issue e.g. when running the xonsh kernel.
KernelApp sets
sys.displayhooktoZMQDisplayhook, which sendsexecute_resultmessages without an execution_count, crashing jupyter_console.We don't see this in our own code because ZMQInteractiveShell then overrides it with
ZMQShellDisplayHook, which works correctly. But this is an issue e.g. when running the xonsh kernel.