This might help someone else. I kept on getting exception in jupyter notebook causing the notebook to not functioning properly anymore. I saw the following in the terminal:
[E 16:12:01.873 NotebookApp] Exception in callback functools.partial(<function ZMQStream._update_handler.<locals>.<lambda> at 0x7fa12e5f51c0>)
Traceback (most recent call last):
File ".../chipwhisperer/.venv/lib/python3.11/site-packages/tornado/ioloop.py", line 738, in _run_callback
ret = callback()
^^^^^^^^^^
...
lots of lots of traceback
...
File ".../chipwhisperer/.venv/lib/python3.11/site-packages/tornado/iostream.py", line 965, in _handle_write
self._write_buffer.advance(num_bytes)
File ".../chipwhisperer/.venv/lib/python3.11/site-packages/tornado/iostream.py", line 182, in advance
assert 0 < size <= self._size
^^^^^^^^^^^^^^^^^^^^^^
AssertionError
If you see this issue try downgrading pyzmq and jupyter_client:
pip install --upgrade "pyzmq<25" "jupyter_client<8
This solved it for me.