jupyter / jupyter_client

Jupyter protocol client APIs
https://jupyter-client.readthedocs.io
BSD 3-Clause "New" or "Revised" License
383 stars 283 forks source link

get_msgs function will stuck when there is no msg #1035

Open freedom-git opened 3 weeks ago

freedom-git commented 3 weeks ago

https://github.com/jupyter/jupyter_client/blob/8ca76ea1e67c9732a67cab812f8129b68671b9cd/jupyter_client/channels.py#L239 You need to set timeout to be 0 in get_msg, otherwise it will get stuck rather than raise Empty and break. image