I want to run a Jupyter notebook with Julia kernel in Amazon SageMaker. The Julia 1.7.1 icon shows up in the Jupyterlab launcher and accepts the kernel on launch, but then the kernel dies immediately after launch (it never works). Log info:
[E 00:25:58.760 NotebookApp] Uncaught exception in ZMQStream callback
Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/zmq/eventloop/zmqstream.py", line 431, in _run_callback
callback(*args, **kwargs)
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/notebook/services/kernels/kernelmanager.py", line 391, in record_activity
msg = session.deserialize(fed_msg_list)
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.7/site-packages/jupyter_client/session.py", line 929, in deserialize
raise ValueError("Invalid Signature: %r" % signature)
ValueError: Invalid Signature: b'ec1d1093f3b6505658469b860c203f696bc39cf8fcea1672cb55802fc57592eef57b8db0b5cb603d1bcada6f41060f0819f6002a7a31f309fbaa1a701cc13f5b'
There are some posts from 2018 recommending updating tornado and ipykernel, but 4 years later this should hardly apply (and I tried it, and it didn’t work). Any suggestions? What could be going wrong here?
Same problem, using tornado 6.2.0 (required) and jupyter notebook 6.5.3 trying to play animations… I tried downgrading both tornado and jupiter - did not worked.
I have a notebook that consistently (but randomly) causes this error. Searching over the internet (and github) give the impression that this problem pops up for many people, but there are no concrete solutions. Does anyone have any suggestions? I’m running Jupyter Lab and Notebook on Linux, fully up to date. I can share the notebook if it would help. It uses matplotlib and interact, and it seems the problem only happens when there several plots updated with sliders.
This is the exact error I’m getting:
ERROR:tornado.general:Uncaught exception in ZMQStream callback
Traceback (most recent call last):
File "/home/miguel/.cache/uv/archive-v0/llePnylAs7BHPEtpVo8SN/lib/python3.14/site-packages/zmq/eventloop/zmqstream.py", line 565, in _log_error
f.result()
~~~~~~~~^^
File "/home/miguel/.cache/uv/archive-v0/llePnylAs7BHPEtpVo8SN/lib/python3.14/site-packages/ipykernel/utils.py", line 60, in run_in_context
return await asyncio.create_task(coro, context=context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/miguel/.cache/uv/archive-v0/llePnylAs7BHPEtpVo8SN/lib/python3.14/site-packages/ipykernel/kernelbase.py", line 621, in shell_main
await self.dispatch_shell(msg, subshell_id=subshell_id)
File "/home/miguel/.cache/uv/archive-v0/llePnylAs7BHPEtpVo8SN/lib/python3.14/site-packages/ipykernel/kernelbase.py", line 428, in dispatch_shell
self.set_parent(idents, msg, channel="shell")
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/miguel/.cache/uv/archive-v0/llePnylAs7BHPEtpVo8SN/lib/python3.14/site-packages/ipykernel/ipkernel.py", line 259, in set_parent
self.shell.set_parent(parent)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/home/miguel/.cache/uv/archive-v0/llePnylAs7BHPEtpVo8SN/lib/python3.14/site-packages/ipykernel/zmqshell.py", line 725, in set_parent
self.display_pub.set_parent(parent) # type:ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'CapturingDisplayPublisher' object has no attribute 'set_parent'